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

navigation-rules.xml to allow outcome expression

    Details

      Description

      jPDL allows us to make navigation decisions in EL instead of the Java code. This allows a lot of loose coupling and transparency. We should also support this for stateless navigation, ie:

      <page view-id="/loadCustomer.jsp">
      <from-action expression="#

      {customerHome.load}" outcome="#{customerHome.found}">
      <from-outcome value="true">
      <render view-id="/displayCustomer.jsp"/>
      </from-outcome>
      <from-outcome value="false">
      <render view-id="/notFound.jsp"/>
      </from-outcome>
      </from-action>
      </page>

      It can reduce to:

      <page view-id="/loadCustomer.jsp">
      <from-action expression="#{customerHome.load}

      ">
      <from-outcome value="success">
      <render view-id="/displayCustomer.jsp"/>
      </from-outcome>
      <from-outcome value="not-found">
      <render view-id="/notFound.jsp"/>
      </from-outcome>
      </from-action>
      </page>

      to emulate a normal JSF navigation rule.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gavin.king Gavin King
                  Reporter:
                  gavin.king Gavin King
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: