[jboss-cvs] jboss-seam/examples/jpa/resources ...
Michael Yuan
michael.yuan at jboss.com
Mon Feb 26 17:05:56 EST 2007
User: myuan
Date: 07/02/26 17:05:56
Modified: examples/jpa/resources pages.xml
Log:
patch the app to latest code
Revision Changes Path
1.5 +14 -4 jboss-seam/examples/jpa/resources/pages.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pages.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/pages.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- pages.xml 19 Feb 2007 04:07:23 -0000 1.4
+++ pages.xml 26 Feb 2007 22:05:56 -0000 1.5
@@ -2,7 +2,8 @@
"-//JBoss/Seam Pages Configuration DTD 1.1//EN"
"http://jboss.com/products/seam/pages-1.1.dtd">
-<pages no-conversation-view-id="/main.xhtml" login-view-id="/home.xhtml">
+<pages no-conversation-view-id="/main.xhtml"
+ login-view-id="/home.xhtml">
<page view-id="/register.xhtml">
@@ -37,7 +38,8 @@
</page>
- <page view-id="/main.xhtml" login-required="true">
+ <page view-id="/main.xhtml"
+ login-required="true">
<navigation from-action="#{hotelBooking.selectHotel(hot)}">
<redirect view-id="/hotel.xhtml"/>
@@ -62,7 +64,9 @@
<description>Book hotel: #{hotel.name}</description>
<navigation from-action="#{hotelBooking.setBookingDetails}">
+ <rule if="#{hotelBooking.bookingValid}">
<redirect view-id="/confirm.xhtml"/>
+ </rule>
</navigation>
</page>
@@ -90,4 +94,10 @@
</page>
+ <exception class="org.jboss.seam.security.NotLoggedInException">
+ <redirect view-id="/home.xhtml">
+ <message severity="warn">You must be logged in to use this feature</message>
+ </redirect>
+ </exception>
+
</pages>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list