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