0

这个错误是什么意思?

javax.faces.el.E​​valuationException: /WEB-INF/view/template.xhtml @18,58 rendering="#{seguridadACG.esRol eq 'Productor'}": 获取类型基数的属性 esRol 的值的异常:org. javassist.tmp.java.lang.Object_$$_javassist_374 at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60) at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075) at com .sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:231) 在 com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) 在 com.sun.facelets.FaceletViewHandler.renderView (FaceletViewHandler.java:580)在 org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)在 org.ajax4jsf.framework.ajax.AjaxViewHandler。renderView(AjaxViewHandler.java:233) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina .core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57 ) 在 org.jboss.seam.web.RedirectFilter 的 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 的 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)。 doFilter(RedirectFilter.java:45) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) 在 org.ajax4jsf.framework.ajax 的 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) .xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173 ) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core 的 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)。 ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在 org.apache.catalina.core.StandardWrapperValve。在 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) 在 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) 在 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 调用(StandardWrapperValve.java:213) .apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 在 org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 在 org.apache.catalina.connector.CoyoteAdapter。在 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 在 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 的服务(CoyoteAdapter.java:148) .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread .java:662)在 java.lang.Thread.run(Thread.java:662) 处运行(MasterSlaveWorkerThread.java:112)在 java.lang.Thread.run(Thread.java:662) 处运行(MasterSlaveWorkerThread.java:112)

我的课是:

@Stateful
@Name("seguridadACG")
public class SeguridadControllerBean implements SeguridadController, Serializable {

    private static final long serialVersionUID = 7838664976264342564L;          

    private String esRol;

    public String getEsRol(){
        this.esRol = "Productor";
        return this.esRol;
    }

}

在 XHTML 中,我输入了以下代码:

<h:outputText   value=" Productores" rendered="#{seguridadACG.esRol == 'Productor'}" />

有人……求你了!帮助!谢谢

4

0 回答 0