This trivial webapp presents a simple room-reservation system for a hotel. This hotel has an unlimited number of rooms, but is closed on Saturday and Sunday nights.
The presentation logic for this page is in bean reservationBookView
which is in a "manual" conversation. As this manual conversation is never
explicitly invalidated, this is effectively like "session" scope - except that it
integrates correctly with "conversation contexts", ie multiple concurrent windows
are supported.
The reservation subpage uses bean reservationView
which is in an
"access" conversation. Before navigating to that view, this page pushes needed
parameters data into it using the t:updateActionListener (for JSF1.2, use the
standard f:setPropertyActionListener component instead). This creates the bean
instance.