Cambio en la descripción de PDS MyHealth a MyHealth

Configuración de regla de navegación para JSF.
Pruebas con primefaces
Nuevo ManagedBean para pantalla home.
Pagina de login para pruebas.
This commit is contained in:
mgarcianun
2019-11-22 18:37:20 +01:00
parent 12da362578
commit a7a7f99b3a
15 changed files with 128 additions and 52 deletions

View File

@@ -1,3 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -6,8 +8,10 @@
<navigation-rule>
<from-view-id>/login.xhtml</from-view-id>
<navigation-case>
<from-outcome>admin</from-outcome>
<to-view-id>/admin.xhtml</to-view-id>
<from-outcome>home</from-outcome>
<to-view-id>/home.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
</faces-config>

View File

@@ -30,14 +30,18 @@ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/error.xhtml</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>ErrowView.xhtml</location>
<location>/error.xhtml</location>
</error-page>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>HomeView.xhtml</welcome-file>
<welcome-file>home.xhtml</welcome-file>
</welcome-file-list>
</web-app>