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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user