|
Préférences
Moteurs de recherche
|
|||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.validator
|
Field Summary | |
---|---|
static String |
NOT_IN_RANGE_MESSAGE_ID
Deprecated. Use DoubleRangeValidator.NOT_IN_RANGE_MESSAGE_ID or
LongRangeValidator.NOT_IN_RANGE_MESSAGE_ID instead. |
Method Summary | |
---|---|
void |
validate(FacesContext context,
UIComponent component,
Object value)
Perform the correctness checks implemented by this Validator against the specified UIComponent . |
Field Detail |
---|
static final String NOT_IN_RANGE_MESSAGE_ID
DoubleRangeValidator.NOT_IN_RANGE_MESSAGE_ID
or
LongRangeValidator.NOT_IN_RANGE_MESSAGE_ID
instead.The message identifier of the FacesMessage
to be created if
the maximum or minimum value check fails, and both the maximum
and minimum values for this validator have been set. The message
format string for this message may optionally include a
{0}
placeholder, which will be replaced by the
configured minimum value, and a {1}
placeholder,
which will be replaced by the configured maximum value.
Method Detail |
---|
void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
Perform the correctness checks implemented by this
Validator
against the specified UIComponent
.
If any violations are found, a ValidatorException
will be thrown containing the FacesMessage
describing
the failure.
context
- FacesContext for the request we are processingcomponent
- UIComponent we are checking for correctnessvalue
- the value to validate
ValidatorException
- if validation fails
NullPointerException
- if context
or component
is null