Configuración de regla de navegación para JSF. Pruebas con primefaces Nuevo ManagedBean para pantalla home. Pagina de login para pruebas.
48 lines
1.6 KiB
XML
48 lines
1.6 KiB
XML
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
|
|
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
|
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
id="WebApp_ID" version="2.5">
|
|
|
|
<context-param>
|
|
<description>
|
|
Define the value returned by Application.getProjectStage(). Allowed values: Production, Development,
|
|
UnitTest, SystemTest, Extension. Default value is Production.
|
|
</description>
|
|
<param-name>javax.faces.PROJECT_STAGE</param-name>
|
|
<param-value>Development</param-value>
|
|
</context-param>
|
|
|
|
<!-- Definir este parámetro es más cómodo y más visual que usar el <ui:remove> de Facelets. -->
|
|
<context-param>
|
|
<description>Do not render comments in facelets (xhtml) pages. Default is false.</description>
|
|
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
|
|
<servlet>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<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>/error.xhtml</location>
|
|
</error-page>
|
|
|
|
<!-- The Welcome File List -->
|
|
<welcome-file-list>
|
|
<welcome-file>home.xhtml</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
</web-app>
|