Author: rahul
Date: Tue Nov 21 14:28:43 2006
New Revision: 477934
URL: http://svn.apache.org/viewvc?view=rev&rev=477934
Log:
Illustrate use of redirection.
SHALE-337
Modified:
shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/wizard.xml
Modified: shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/wizard.xml
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/wizard.xml?view=diff&rev=477934&r1=477933&r2=477934
==============================================================================
--- shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/wizard.xml
(original)
+++ shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/wizard.xml
Tue Nov 21 14:28:43 2006
@@ -22,6 +22,7 @@
This file was generated by a stylesheet.
-->
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
+ xmlns:shale="http://shale.apache.org/dialog-scxml"
initialstate="setup">
<state id="setup">
@@ -39,11 +40,19 @@
</state>
<state id="wizardpage2">
+ <onentry>
+ <!-- Next view (the one for this view state), will use a redirect -->
+ <shale:redirect/>
+ </onentry>
<transition target="wizardcancelled" event="faces.outcome" cond="${outcome eq 'cancelled'}"/>
<transition target="wizardfinished" event="faces.outcome" cond="${outcome eq 'finished'}"/>
<transition target="wizardpage3" event="faces.outcome" cond="${outcome eq 'next'}"/>
<transition target="wizardpage1" event="faces.outcome" cond="${outcome eq 'previous'}"/>
<transition target="menu" event="faces.outcome" cond="${outcome eq 'exit'}"/>
+ <onexit>
+ <!-- Next view (depends on whichever transition is followed above), will use a redirect
-->
+ <shale:redirect/>
+ </onexit>
</state>
<state id="wizardpage3">
|