By the way, here is an example of a page flow:
<process-definition name="shopping">
|
| <start-state name="start">
| <transition to="browse"/>
| </start-state>
|
| <page name="browse" view-id="/browse.xhtml">
| <transition name="browse" to="browse"/>
| <transition name="checkout" to="checkout"/>
| </page>
|
| <page name="checkout" view-id="/checkout.xhtml">
| <transition name="checkout" to="checkout"/>
| <transition name="complete" to="complete"/>
| </page>
|
| <page name="complete" view-id="/complete.xhtml">
| <end-conversation />
| </page>
|
| </process-definition>
This replaces the role of JSF navigation rules, for applications with complex
user interactions.
But you can do more than that - Here is an example where the page flow also
takes on the role of calling actions:
<process-definition name="shopping">
|
| <start-state name="start">
| <transition to="browse"/>
| </start-state>
|
| <page name="browse" view-id="/browse.xhtml">
| <transition name="addToCart" to="browse">
| <action expression="#{cart.add}" />
| </transition>
| <transition name="checkout" to="checkout"/>
| </page>
|
| <page name="checkout" view-id="/checkout.xhtml">
| <transition name="update" to="checkout">
| <action expression="#{cart.update}" />
| </transition>
| <transition name="complete" to="validate"/>
| </page>
|
| <decision name="validate" expression="#{cart.purchase}">
| <transition name="success" to="complete"/>
| <transition name="failed" to="checkout"/>
| </decision>
|
| <page name="complete" view-id="/complete.xhtml">
| <end-conversation />
| </page>
|
| </process-definition>
In this case, your action listeners would no longer be known to the view. The
view would only know the logical transition names in the jPDL file.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915340#3915340
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915340
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user