DateTimeRangeValidator is a {@link Validator} that checksthe value of the corresponding component against specified minimum and maximum dates. The following algorithm is implemented:
null
, exit immediately.maximum
and minimum
property has been configured on this {@link Validator}, check the component value against both limits. If the component value is not within this specified range, throw a {@link ValidatorException} containing a{@link Validator#NOT_IN_RANGE_MESSAGE_ID} message.maximum
property has been configured on this {@link Validator}, check the component value against this limit. If the component value is greater than the specified maximum, throw a {@link ValidatorException} containing aMAXIMUM_MESSAGE_ID message.minimum
property has been configured on this {@link Validator}, check the component value against this limit. If the component value is less than the specified minimum, throw a {@link ValidatorException} containing aMINIMUM_MESSAGE_ID message.The detail part of faces message which arise during validation can be customised by overriding the message associated with each message id by calling appropriate setter methods.
The methods used for customizing the detail message associated with each id is given below:
|
|
|
|