[jboss-cvs] jboss-seam/examples/numberguess/resources ...
Gavin King
gavin.king at jboss.com
Thu Nov 16 10:36:22 EST 2006
User: gavin
Date: 06/11/16 10:36:22
Modified: examples/numberguess/resources .gpd.pageflow.jpdl.xml
pageflow.jpdl.xml
Added: examples/numberguess/resources .gpd.cheat.jpdl.xml
cheat.jpdl.xml
Log:
add nested pageflow
Revision Changes Path
1.9 +1 -1 jboss-seam/examples/numberguess/resources/.gpd.pageflow.jpdl.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: .gpd.pageflow.jpdl.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/resources/.gpd.pageflow.jpdl.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- .gpd.pageflow.jpdl.xml 25 Oct 2006 16:03:34 -0000 1.8
+++ .gpd.pageflow.jpdl.xml 16 Nov 2006 15:36:22 -0000 1.9
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<pageflow-diagram name="numberGuess" width="776" height="654">
+<pageflow-diagram name="numberGuess" width="769" height="397">
<node name="displayGuess" x="255" y="47" width="140" height="40">
<transition name="guess">
<label x="-41" y="-23"/>
1.7 +3 -3 jboss-seam/examples/numberguess/resources/pageflow.jpdl.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pageflow.jpdl.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/resources/pageflow.jpdl.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- pageflow.jpdl.xml 25 Oct 2006 16:03:34 -0000 1.6
+++ pageflow.jpdl.xml 16 Nov 2006 15:36:22 -0000 1.7
@@ -14,7 +14,7 @@
<start-page name="displayGuess" view-id="/numberGuess.jspx">
<redirect/>
<transition name="guess" to="evaluateGuess">
- <action expression="#{numberGuess.guess}" />
+ <action expression="#{numberGuess.guess}"/>
</transition>
</start-page>
@@ -30,12 +30,12 @@
<page name="win" view-id="/win.jspx">
<redirect/>
- <end-conversation />
+ <end-conversation/>
</page>
<page name="lose" view-id="/lose.jspx">
<redirect/>
- <end-conversation />
+ <end-conversation/>
</page>
</pageflow-definition>
\ No newline at end of file
1.1 date: 2006/11/16 15:36:22; author: gavin; state: Exp;jboss-seam/examples/numberguess/resources/.gpd.cheat.jpdl.xml
Index: .gpd.cheat.jpdl.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<pageflow-diagram name="cheat" width="770" height="755">
<node x="0" y="0" width="140" height="40">
<transition>
<label x="5" y="-10"/>
</transition>
</node>
<node name="confirm" x="0" y="0" width="140" height="40">
<transition name="yes">
<label x="5" y="-10"/>
</transition>
<transition name="no">
<label x="5" y="-10"/>
</transition>
</node>
<node name="cheat" x="201" y="143" width="140" height="40">
<transition>
<label x="5" y="-10"/>
</transition>
</node>
<node name="end" x="40" y="263" width="140" height="40"/>
</pageflow-diagram>
1.1 date: 2006/11/16 15:36:22; author: gavin; state: Exp;jboss-seam/examples/numberguess/resources/cheat.jpdl.xml
Index: cheat.jpdl.xml
===================================================================
<!--
An example of pageflow in jPDL. This exemplifies the
approach where action handlers are attached transitions
and decision nodes, instead of view components.
An alternative approach would be to attach all action
handlers to view components, and let the jPDL define
only the navigation rules.
-->
<pageflow-definition name="cheat">
<start-state>
<transition to="confirm"/>
</start-state>
<page name="confirm" view-id="/confirm.jspx">
<redirect/>
<transition name="yes" to="cheat">
<action expression="#{numberGuess.cheated}"/>
</transition>
<transition name="no" to="end"/>
</page>
<page name="cheat" view-id="/cheat.jspx">
<redirect/>
<transition to="end"/>
</page>
<page name="end" view-id="/numberGuess.jspx">
<redirect/>
<end-conversation/>
</page>
</pageflow-definition>
More information about the jboss-cvs-commits
mailing list