[jboss-cvs] jboss-seam/examples/registration/resources/WEB-INF ...
Gavin King
gavin.king at jboss.com
Wed Sep 27 19:15:03 EDT 2006
User: gavin
Date: 06/09/27 19:15:03
Modified: examples/registration/resources/WEB-INF faces-config.xml
web.xml
Log:
latest improvements to crud example
Revision Changes Path
1.16 +25 -0 jboss-seam/examples/registration/resources/WEB-INF/faces-config.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: faces-config.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/registration/resources/WEB-INF/faces-config.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- faces-config.xml 27 Sep 2006 04:09:02 -0000 1.15
+++ faces-config.xml 27 Sep 2006 23:15:03 -0000 1.16
@@ -4,6 +4,31 @@
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
+ <navigation-rule>
+
+ <navigation-case>
+ <from-action>#{contactActions.update}</from-action>
+ <from-outcome>updated</from-outcome>
+ <to-view-id>/viewContact.xhtml</to-view-id>
+ <redirect/>
+ </navigation-case>
+
+ <navigation-case>
+ <from-action>#{contactActions.persist}</from-action>
+ <from-outcome>persisted</from-outcome>
+ <to-view-id>/viewContact.xhtml</to-view-id>
+ <redirect/>
+ </navigation-case>
+
+ <navigation-case>
+ <from-action>#{contactActions.remove}</from-action>
+ <from-outcome>removed</from-outcome>
+ <to-view-id>/search.xhtml</to-view-id>
+ <redirect/>
+ </navigation-case>
+
+ </navigation-rule>
+
<!-- Facelets support -->
<application>
1.18 +10 -0 jboss-seam/examples/registration/resources/WEB-INF/web.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: web.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/registration/resources/WEB-INF/web.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- web.xml 27 Sep 2006 04:09:02 -0000 1.17
+++ web.xml 27 Sep 2006 23:15:03 -0000 1.18
@@ -10,6 +10,16 @@
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
+ <filter>
+ <filter-name>Seam Redirect Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>Seam Redirect Filter</filter-name>
+ <url-pattern>*.seam</url-pattern>
+ </filter-mapping>
+
<!-- Facelets -->
<context-param>
More information about the jboss-cvs-commits
mailing list