jsf 配置web.xml






详见:javax.faces.application.ProjectStage类
可取值:
Development
UnitTest
SystemTest
Production

javax.faces.PROJECT_STAGE
Development



指示是在客户端(client)还是在服务器端(server)保存UI组件的状态和
session信息, server表示保存到服务器端,client表示保存到客户端,
默认为server。

javax.faces.STATE_SAVING_METHOD
client



当使用扩展名映射(后缀映射)时,所使用的资源的默认后缀
默认为.jsp,它自于javax.faces.application.ViewHandler
类中的常量. 常量的名字是 DEFAULT_SUFFIX 值相当于 ".jsp"

javax.faces.DEFAULT_SUFFIX
.xhtml





逗号分隔的上下文相关的资源路径列表,
JSF将在装载WEB-INF/faces-config.xml之前载入这些资源

javax.faces.CONFIG_FILES

/WEB-INF/faces-config.xml




设置自定义的Facelets标签库文件路径

javax.faces.FACELETS_LIBRARIES
/WEB-INF/guessnumber.taglib.xml




Set this flag to true if you want the JSF
Reference Implementation to verify that all of the application
objects you have configured (components, converters,
renderers, and validators) can be successfully created.
Default value is false.
告诉JSF验证其可以创建应用对象(组件,呈现器,转换器等),
那么设置标志为true, 默认值为false。

com.sun.faces.verifyObjects
false



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。

com.sun.faces.validateXml
false







Faces Servlet
javax.faces.webapp.FacesServlet
1




Faces Servlet
*.faces




30


index.html
index.jsp
index.xhtml



FORM


/login.jsp
/loginerror.jsp



manager


employee



jsf
javaserver faces
/security/*


manager
employee


你可能感兴趣的:(jsf 配置web.xml)