1 Reply Latest reply on Dec 9, 2008 7:54 PM by Guillaume Jeudy

    pages.xml and custom EL functions ?

    Guillaume Jeudy Master

      Hi,


      I'm using Seam 2.0.1.GA. Is there anyway I can use custom EL functions in pages.xml ?


      I defined a facelets library to load all my static java functions now I added the function namespace in the pages node declaration but I get this error at runtime:


      Am I hitting a limitation?


      11:59:08,881 ERROR [ExceptionFilter] exception root cause
      javax.el.ELException: Function 'rdm-func:in' not found
              at org.jboss.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:176)
      
              at org.jboss.el.parser.SimpleNode.accept(SimpleNode.java:129)
              at org.jboss.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:13
      8)
              at org.jboss.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:152)
      
              at org.jboss.el.lang.ExpressionBuilder.createValueExpression(ExpressionB
      uilder.java:195)
              at org.jboss.el.ExpressionFactoryImpl.createValueExpression(ExpressionFa
      ctoryImpl.java:68)
              at org.jboss.seam.el.SeamExpressionFactory.createValueExpression(SeamExp
      ressionFactory.java:98)
              at org.jboss.seam.core.Expressions$1.createExpression(Expressions.java:1
      06)
              at org.jboss.seam.core.Expressions$1.toUnifiedValueExpression(Expression
      s.java:98)
              at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:111)
              at org.jboss.seam.navigation.Rule.matches(Rule.java:30)
              at org.jboss.seam.navigation.Navigation.navigate(Navigation.java:56)
              at org.jboss.seam.navigation.Pages.navigate(Pages.java:134)
              at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigat
      ionHandler.java:42)
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
      enerImpl.java:119)
              at javax.faces.component.UICommand.broadcast(UICommand.java:383)
              at org.ajax4jsf.component.UIDataAdaptor.broadcast(UIDataAdaptor.java:135
      9)
              at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:3
      17)
              at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java
      :292)
              at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:24
      9)
              at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.j
      ava:462)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
      ionPhase.java:97)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:83)
              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
      a:68)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
      
              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFil
      ter.java:366)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at com.archinsurance.reference.web.filter.ProfilingFilter.doFilter(Profi
      lingFilter.java:43)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
              at java.lang.Thread.run(Thread.java:595)