ingBeanFacesELResolver必须扩展类型java

ingBeanFacesELResolver必须扩展类型java

本文介绍了类org.springframework.web.jsf.el.SpringBeanFacesELResolver必须扩展类型javax.el.E​​LResolver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Spring集成到JSF应用程序中.

I am trying to integrate Spring into a JSF application.

faces-config.xml中,我包括了此内容:

In faces-config.xml, I have included this:

<application>
  <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>

但是它显示了一个奇怪的警告,我无法摆脱它:

but it shows a weird warning which I can't get rid of:

Class org.springframework.web.jsf.el.SpringBeanFacesELResolver must extend the type javax.el.ELResolver

有什么想法吗?

推荐答案

我的问题消失了,方法是替换这些行:

Well my problem disappeared substituting these lines by:

<!-- variable/property resolver registration -->
    <application>
        <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
        <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>

希望有帮助!

这篇关于类org.springframework.web.jsf.el.SpringBeanFacesELResolver必须扩展类型javax.el.E​​LResolver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 13:14