variable-resolver

来源:互联网 发布:矩阵和行列式的区别 编辑:程序博客网 时间:2024/05/22 12:38

文件头:

 

<?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/javaeehttp://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
    <!-- 配置变量解析器 -->

 

在face-config.xml文件里加入这段代码,则重启服务,打开页面时,界面有数据。如果删掉该段代码,页面正常,界面数据为空。

    <!-- 配置变量解析器 -->
  
    <application>
  <variable-resolver>
      org.springframework.web.jsf.DelegatingVariableResolver
     </variable-resolver>
 </application>
 

虽然工程提示:

API variable-resolver is deprecated after JSF 1.1. Use el-resolver instead.(JSF2 要用el_resolver),但是该警告也不影响程序。

0 0
原创粉丝点击