Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1209

Parameter values in *.page.xml can only be EL expressions

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In myPage.page.xml, if I specify a parameter in a redirect, I get an error if the parameter value is just a String:

      <param name="editMode" value="true" />
      leads to the following exception:

      javax.servlet.ServletException: Invalid expression: 'true'. Parsed Expression of unexpected type java.lang.String
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      javax.faces.el.ReferenceSyntaxException: Invalid expression: 'true'. Parsed Expression of unexpected type java.lang.String
      org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:84)
      org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
      org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
      org.apache.myfaces.el.ValueBindingImpl.<init>(ValueBindingImpl.java:115)
      org.apache.myfaces.application.ApplicationImpl$1.newInstance(ApplicationImpl.java:64)
      org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
      org.apache.myfaces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:617)
      org.jboss.seam.jsf.SeamApplication11.createValueBinding(SeamApplication11.java:143)
      org.jboss.seam.core.Expressions$1.getFacesValueBinding(Expressions.java:119)
      org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
      org.jboss.seam.pages.Param.getValueFromModel(Param.java:93)
      org.jboss.seam.pages.RedirectNavigationHandler.navigate(RedirectNavigationHandler.java:36)
      org.jboss.seam.pages.Rule.execute(Rule.java:91)
      org.jboss.seam.pages.Navigation.navigate(Navigation.java:65)
      org.jboss.seam.core.Pages.navigate(Pages.java:131)
      org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:32)
      org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:84)
      javax.faces.component.UICommand.broadcast(UICommand.java:106)
      javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
      javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
      org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
      org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      If I use <param name="editMode" value="#

      {true}

      " />, it works.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  afehr Alan Fehr
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: