com.sun.rave.web.ui.validator
Class DateInRangeValidator

java.lang.Object
  extended by com.sun.rave.web.ui.validator.DateInRangeValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.validator.Validator

public class DateInRangeValidator
extends java.lang.Object
implements javax.faces.validator.Validator

Use this validator to check the number of characters in a string when you need to set the validation messages.


Field Summary
static java.lang.String VALIDATOR_ID
          The converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
DateInRangeValidator()
          Creates a new instance of StringLengthValidator
 
Method Summary
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           Validate the value with regard to a UIComponent and a FacesContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final java.lang.String VALIDATOR_ID

The converter id for this converter.

See Also:
Constant Field Values
Constructor Detail

DateInRangeValidator

public DateInRangeValidator()
Creates a new instance of StringLengthValidator

Method Detail

validate

public void validate(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException

Validate the value with regard to a UIComponent and a FacesContext.

Specified by:
validate in interface javax.faces.validator.Validator
Parameters:
context - The FacesContext
component - The component to be validated
value - The submitted value of the component
Throws:
javax.faces.validator.ValidatorException - if the value is not valid