Author: rahul
Date: Fri Dec  1 12:24:46 2006
New Revision: 481376

URL: http://svn.apache.org/viewvc?view=rev&rev=481376
Log:
Illustrate use of <shale:view> via test application. Related to:
SHALE-347

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=481376&r1=481375&r2=481376
==============================================================================
--- 
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
 Fri Dec  1 12:24:46 2006
@@ -32,6 +32,9 @@
   <transition target="wizardpage1" cond="${outcome eq 'success'}"/>
  </state>
 
+ <!-- Since no view ID is explicitly specified, the DialogStateMapper is used
+      which by default uses an identity transform
+      (the view ID is the same as the state ID) -->
  <state id="wizardpage1">
   <transition target="wizardcancelled" event="faces.outcome" cond="${outcome 
eq 'cancelled'}"/>
   <transition target="wizardfinished" event="faces.outcome" cond="${outcome eq 
'finished'}"/>
@@ -46,7 +49,7 @@
   </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="page3" 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>
@@ -55,7 +58,12 @@
   </onexit>
  </state>
 
- <state id="wizardpage3">
+ <state id="page3">
+  <onentry>
+   <!-- The view ID to be rendered while in this "view" state
+        is explicitly specified in this case -->
+   <shale:view viewId="/wizardpage3" />
+  </onentry>
   <transition target="wizardcancelled" event="faces.outcome" cond="${outcome 
eq 'cancelled'}"/>
   <transition target="wizardfinished" event="faces.outcome" cond="${outcome eq 
'finished'}"/>
   <transition target="wizardpage2" event="faces.outcome" cond="${outcome eq 
'previous'}"/>


Reply via email to