org.jboss.seam.examples.booking.booking
Class BookingAgent
java.lang.Object
org.jboss.seam.examples.booking.booking.BookingAgent
@ConversationScoped
@Named
public class BookingAgent
- extends Object
- Author:
- Dan Allen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookingAgent
public BookingAgent()
selectHotel
public void selectHotel(Long id)
bookHotel
public void bookHotel()
validate
public void validate()
confirm
public void confirm()
cancel
public void cancel()
onBookingComplete
public void onBookingComplete(@Observes(during=AFTER_SUCCESS)@Confirmed
Booking booking)
getBooking
@Produces
@ConversationScoped
@Named
public Booking getBooking()
getSelectedHotel
@Produces
@RequestScoped
@Named(value="hotel")
public Hotel getSelectedHotel()
isBookingValid
public boolean isBookingValid()
Copyright © 2012 Seam Framework. All Rights Reserved.