<context-param> <description> Set this flag to true if you want the JSF Reference Implementation to verify that all of theapplication objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. 告诉JSF验证其可以创建应用对象(组件,呈现器,转换器等),
那么设置标志为true, 默认值为false。 </description> <param-name>com.sun.faces.verifyObjects</param-name> <param-value>false</param-value> </context-param> <context-param> <description> Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. 告诉JSF根据DTD验证配置文件,
那么设置标志为true, 默认值为false。 </description> <param-name>com.sun.faces.validateXml</param-name> <param-value>false</param-value> </context-param> <!-- <context-param> <description>资源更新检查周期</description> <param-name>com.sun.faces.resourceUpdateCheckPeriod</param-name> <param-value>-1</param-value> </context-param> <context-param> <description> 当状态保存方法设置为server时, 控制会话中保存的视图数量. 无默认值 </description> <param-name>com.sun.faces.NUMBER_OF_VIEWS_IN_SESSION</param-name> <param-value>-1</param-value> </context-param> --> <!--*********************************************************--> <!-- <context-param> <description> Setting this to true will cause the FaceletViewHandler to print out debug information in an easy to use screen when an error occurs during the rendering process。 很显然,为了方便开发,我们应该设置。 </description> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>facelets.SKIP_COMMENTS</param-name> <param-value>true</param-value> </context-param>
--> <!--**********JSF基本设置*************************************--> <!-- Faces Servlet --> <servlet> <servlet-name>FacesServlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- Faces Servlet Mapping --> <!-- This mapping identifies a jsp page as having JSFcontent. If a request comes to the server for foo.faces, the container will send the request to the FacesServlet, which will expect a corresponding foo.jsp page to exist containing the content. --> <servlet-mapping> <servlet-name>FacesServlet</servlet-name> <url-pattern>*.faces</url-pattern> <!-- <url-pattern>*.xhtml</url-pattern <url-pattern>*.jsf</url-pattern> <url-pattern>/faces/*</url-pattern> --> </servlet-mapping> <!--**********Web基本设置************************************--> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>index.xhtml</welcome-file> </welcome-file-list>