[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-605) navigation-rules.xml to allow outcome expression
Gavin King (JIRA)
jira-events at jboss.com
Sat Dec 16 12:18:56 EST 2006
navigation-rules.xml to allow outcome expression
------------------------------------------------
Key: JBSEAM-605
URL: http://jira.jboss.com/jira/browse/JBSEAM-605
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Reporter: Gavin King
Assigned To: Gavin King
Fix For: 1.1.1.GA
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list