[jboss-user] [JBoss Seam] - Booking example - missing validation

Newion do-not-reply at jboss.com
Sun Jan 21 12:48:17 EST 2007


After user sets booking details and applies changes, the undergoing validation is performed but the result of validation is not checked before redirecting to confirmation page

Existing navigation code:
<page view-id="/book.xhtml" >
  |           
  |         <navigation from-action="#{hotelBooking.setBookingDetails}">
  | 	            <redirect view-id="/confirm.xhtml"/>
  |         </navigation>
  | </page>

Navigation rule should be added:

<page view-id="/book.xhtml" >
  |           
  |         <navigation from-action="#{hotelBooking.setBookingDetails}">
  |             <rule if="#{hotelBooking.bookingValid}">
  | 	            <redirect view-id="/confirm.xhtml"/>
  | 	        </rule>
  |         </navigation>
  | </page>

Cheers,
Pawel Kaczor

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004587#4004587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004587



More information about the jboss-user mailing list