Questions tagged «faces-config»

1
在JSF 2中,faces-config.xml的用途是什么?
在JSF 2对注释的大力支持之后,我想知道我将把faces-config.xmlfor用于什么。现在它的重要性是什么? 换句话说,只能faces-config.xml通过注释而不通过注释完成的配置是什么? 现在,我使用它的全部目的就是声明Spring的EL解析器。 <?xml version="1.0" encoding="UTF-8"?> <faces-config 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" version="2.0"> <application> <el-resolver> org.springframework.web.jsf.el.SpringBeanFacesELResolver </el-resolver> </application> </faces-config>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.