5 Replies Latest reply on Apr 3, 2007 6:06 PM by Stateless Bean

    Seam EL parsing problem

    Stateless Bean Novice

      Hi,
      I try to force my method to get parameter via link:

      <s:link value="some text" action='#{rocketCenterAction.showDetailedUnit("26")}' />
      


      and different combination
      <s:link value="some text" action="#{rocketCenterAction.showDetailedUnit('26')}" />
      


      but still i get EL parsing error problem.
      I use Seam 1.2.0

      btw how should I declare action for link in pages.xml?
      <navigation from-action="#{rocketCenterAction.showDetailedUnit(idUnit)}">
       <redirect view-id="/pages/ShowDetailedUnit.xhtml"/>
      </navigation>
      

      is well defined?

        • 1. Re: Seam EL parsing problem
          Stateless Bean Novice

          I tryed do same combination of Seam extended EL in other project and don't know how this works?

          Maybe you Gavin have an idea what's wrong?
          I checked libs and seams well in my ear.

          • 2. Re: Seam EL parsing problem
            Pete Muir Master

            Post the exception

            • 3. Re: Seam EL parsing problem
              Stateless Bean Novice

              Here u go...

              <s:link value="#{messages['playerUnit.rocket10']}" action='#{rocketCenterAction.showDetailedUnit("1")}' />
              


              SEVERE: Error Rendering View[/pages/RocketCenter.xhtml]
              com.sun.facelets.tag.TagAttributeException: /pages/RocketCenter.xhtml @116,117 action="#{rocketCenterAction.showDetailedUnit("1")}" Error Parsing: #{rocketCenterAction.showDetailedUnit("1")}
               at com.sun.facelets.tag.TagAttribute.getMethodExpression(TagAttribute.java:144)
               at com.sun.facelets.tag.jsf.ActionSourceRule$ActionMapper.applyMetadata(ActionSourceRule.java:50)
               at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
               at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
               at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:144)
               at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
               at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
               at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
               at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
               at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:54)
               at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
               at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
               at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
               at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
               at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
               at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
               at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
               at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
               at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
               at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
               at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
               at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
               at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
               at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
               at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
               at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
               at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
               at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
               at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
               at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
               at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
               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.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
               at org.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(Unknown Source)
              Caused by: javax.el.ELException: Error Parsing: #{rocketCenterAction.showDetailedUnit("1")}
               at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:140)
               at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:157)
               at com.sun.el.lang.ExpressionBuilder.createMethodExpression(ExpressionBuilder.java:208)
               at com.sun.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:63)
               at com.sun.facelets.tag.TagAttribute.getMethodExpression(TagAttribute.java:141)
               ... 55 more
              Caused by: com.sun.el.parser.ParseException: Encountered "(" at line 1, column 38.
              Was expecting one of:
               "}" ...
               "." ...
               "[" ...
               ">" ...
               "gt" ...
               "<" ...
               "lt" ...
               ">=" ...
               "ge" ...
               "<=" ...
               "le" ...
               "==" ...
               "eq" ...
               "!=" ...
               "ne" ...
               "&&" ...
               "and" ...
               "||" ...
               "or" ...
               "*" ...
               "+" ...
               "-" ...
               "?" ...
               "/" ...
               "div" ...
               "%" ...
               "mod" ...
              
               at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
               at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
               at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
               at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
               at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:103)
               ... 59 more
              
              


              • 4. Re: Seam EL parsing problem
                Pete Muir Master

                I'm not seing the SeamFaceletViewHandler in there

                • 5. Re: Seam EL parsing problem
                  Stateless Bean Novice

                   

                  "petemuir" wrote:
                  I'm not seing the SeamFaceletViewHandler in there


                  Resolved! Thanks, U R Great!
                  Again problem was so stupid and simple...