RegexValidator is a {@link javax.faces.validator.Validator}that checks the value of the corresponding component against specified pattern using Java regular expression syntax. The regular expression syntax accepted by the RegexValidator class is same as mentioned in class {@link java.util.regex.Pattern} in packagejava.util.regex.
The following algorithm is implemented:
null, exit immediately.null or an empty String, throw a {@link javax.faces.validator.ValidatorException}with a {@link #PATTERN_NOT_SET_MESSAGE_ID} message.pattern property has been configured on this {@link javax.faces.validator.Validator}, check the passed value against this pattern. If value does not match pattern throw a {@link ValidatorException}containing a {@link #NOT_MATCHED_MESSAGE_ID} message. | |
| |
| |
| |
| |
| |
| |