com.ibm.xsp.validator
Interface FacesRequiredValidator
- All Superinterfaces:
- java.util.EventListener, javax.faces.validator.Validator
- All Known Implementing Classes:
- RequiredValidator
public interface FacesRequiredValidator
- extends javax.faces.validator.Validator
The required validator is not a normal validator, because it does not perform
the validation in its validate method. Instead, the check for empty string is
performed by the UIInput
or EditableValueHolder
itself,
before attempting to process any of the validators. The
UIInput.isRequired()
method normally controls whether the value is
required or not, but if that value is neither set nor computed in the XPage,
then the presence of a required validator indicates that the value should be
considered required. The main function of the required validator is to
provide the translated error message to be displayed to the user when a
required value is not present.
- See Also:
UIInputEx.isRequired()
Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
Method Summary |
java.lang.String |
getRequiredMessage()
null or the required error message to display when the
required value is not present. |
Methods inherited from interface javax.faces.validator.Validator |
validate |
getRequiredMessage
java.lang.String getRequiredMessage()
null
or the required error message to display when the
required value is not present. If null
, the infrastructure
message will be used.
- Returns:
- message to display when value is required