| |||||||
FRAMES NO FRAMES |
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 package
java.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.
Tag Information | |
Tag Class | org.apache.myfaces.taglib.core.ValidateRegexTag |
TagExtraInfo Class | None |
Body Content | empty |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
pattern | true | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Return the ValueExpression that yields the regular expression pattern when evaluated. |
disabled | false | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| No Description |
for | false | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| No Description |
binding | false | false | javax.el.ValueExpression
(must evaluate to javax.faces.validator.RegexValidator )
| A ValueExpression that evaluates to a RegexValidator. |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |