[seam-commits] Seam SVN: r9229 - trunk/examples/spring/resources/WEB-INF.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Oct 8 06:41:32 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-10-08 06:41:32 -0400 (Wed, 08 Oct 2008)
New Revision: 9229
Modified:
trunk/examples/spring/resources/WEB-INF/pages.xml
Log:
JBSEAM-3528
Modified: trunk/examples/spring/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/spring/resources/WEB-INF/pages.xml 2008-10-08 10:37:34 UTC (rev 9228)
+++ trunk/examples/spring/resources/WEB-INF/pages.xml 2008-10-08 10:41:32 UTC (rev 9229)
@@ -2,7 +2,6 @@
<pages xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"
- login-view-id="/home.xhtml"
no-conversation-view-id="/main.xhtml">
<page view-id="/register.xhtml">
@@ -28,8 +27,16 @@
</page>
- <page view-id="/password.xhtml" login-required="true">
+ <page view-id="/password.xhtml">
+ <action execute="#{login.validateLogin}"/>
+
+ <navigation from-action="#{login.validateLogin}">
+ <rule if="#{not login.loggedIn}">
+ <redirect view-id="/home.xhtml"/>
+ </rule>
+ </navigation>
+
<navigation>
<rule if="#{changePassword.changed}">
<redirect view-id="/main.xhtml"/>
More information about the seam-commits
mailing list