String id = new FacesRequest("/main.xhtml") {
@Override
protected void invokeApplication() throws Exception {
HotelBookingAction hotelBooking = (HotelBookingAction) getInstance("hotelBooking");
DataModel hotels = (DataModel) Contexts.getSessionContext().get("hotels");
assert hotels.getRowCount()==1;
hotelBooking.selectHotel( (Hotel) hotels.getRowData() );
}
@Override
protected void renderResponse()
{