Esqueleto de proyecto inicial.
This commit is contained in:
13
1.sources/MyHealth/docroot/WEB-INF/faces-config.xml
Normal file
13
1.sources/MyHealth/docroot/WEB-INF/faces-config.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<faces-config version="2.0"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
|
||||
|
||||
<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>
|
||||
</navigation-case>
|
||||
</navigation-rule>
|
||||
</faces-config>
|
||||
43
1.sources/MyHealth/docroot/WEB-INF/web.xml
Normal file
43
1.sources/MyHealth/docroot/WEB-INF/web.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<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>500</error-code>
|
||||
<location>ErrowView.xhtml</location>
|
||||
</error-page>
|
||||
|
||||
<!-- The Welcome File List -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>HomeView.xhtml</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
||||
Reference in New Issue
Block a user