[jboss-cvs] jboss-seam/examples/booking/resources/WEB-INF ...
Gavin King
gavin.king at jboss.com
Tue Feb 13 00:43:45 EST 2007
User: gavin
Date: 07/02/13 00:43:45
Modified: examples/booking/resources/WEB-INF pages.xml
Log:
fix handling of not logged in
Revision Changes Path
1.16 +7 -6 jboss-seam/examples/booking/resources/WEB-INF/pages.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pages.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/resources/WEB-INF/pages.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- pages.xml 13 Feb 2007 03:49:42 -0000 1.15
+++ pages.xml 13 Feb 2007 05:43:45 -0000 1.16
@@ -38,12 +38,7 @@
</page>
<page view-id="/main.xhtml">
-
- <navigation>
- <rule if="#{not identity.loggedIn}">
- <redirect view-id="/home.xhtml"/>
- </rule>
- </navigation>
+ <restrict>#{identity.loggedIn}</restrict>
<navigation from-action="#{hotelBooking.selectHotel(hot)}">
<redirect view-id="/hotel.xhtml"/>
@@ -98,4 +93,10 @@
</page>
+ <exception class="org.jboss.seam.security.NotLoggedInException">
+ <redirect view-id="/home.xhtml">
+ <message>Please log in first</message>
+ </redirect>
+ </exception>
+
</pages>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list