org.jboss.seam.examples.booking.booking
Class ReservationDateRangeValidator

java.lang.Object
  extended by org.jboss.seam.examples.booking.booking.ReservationDateRangeValidator
All Implemented Interfaces:
EventListener, Validator

public class ReservationDateRangeValidator
extends Object
implements Validator

A cross-field validator that validates the start date is in the future and before the end date.

Author:
Dan Allen

Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
ReservationDateRangeValidator()
           
 
Method Summary
 void validate(FacesContext ctx, UIComponent form, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationDateRangeValidator

public ReservationDateRangeValidator()
Method Detail

validate

public void validate(FacesContext ctx,
                     UIComponent form,
                     Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException


Copyright © 2011 Seam Framework. All Rights Reserved.