[jboss-cvs] jboss-seam/examples/contactlist/resources/WEB-INF/classes ...
Gavin King
gavin.king at jboss.com
Thu Feb 22 13:17:14 EST 2007
User: gavin
Date: 07/02/22 13:17:14
Modified: examples/contactlist/resources/WEB-INF/classes
editContact.page.xml viewContact.page.xml
Log:
use pages.xml style navigation
Revision Changes Path
1.3 +13 -0 jboss-seam/examples/contactlist/resources/WEB-INF/classes/editContact.page.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: editContact.page.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/classes/editContact.page.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- editContact.page.xml 10 Nov 2006 19:13:58 -0000 1.2
+++ editContact.page.xml 22 Feb 2007 18:17:14 -0000 1.3
@@ -6,4 +6,17 @@
<param name="contactId"
value="#{contactHome.id}"
converterId="javax.faces.Long"/>
+
+ <navigation>
+ <rule if-outcome="updated">
+ <redirect view-id="/viewContact.xhtml"/>
+ </rule>
+ <rule if-outcome="persisted">
+ <redirect view-id="/viewContact.xhtml"/>
+ </rule>
+ <rule if-outcome="removed">
+ <redirect view-id="/search.xhtml"/>
+ </rule>
+ </navigation>
+
</page>
1.3 +11 -1 jboss-seam/examples/contactlist/resources/WEB-INF/classes/viewContact.page.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: viewContact.page.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/classes/viewContact.page.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- viewContact.page.xml 10 Nov 2006 19:13:58 -0000 1.2
+++ viewContact.page.xml 22 Feb 2007 18:17:14 -0000 1.3
@@ -6,4 +6,14 @@
<param name="contactId"
value="#{contactHome.id}"
converterId="javax.faces.Long"/>
+
+ <navigation>
+ <rule if-outcome="persisted">
+ <redirect/>
+ </rule>
+ <rule if-outcome="removed">
+ <redirect view-id="/search.xhtml"/>
+ </rule>
+ </navigation>
+
</page>
More information about the jboss-cvs-commits
mailing list