public class RegexValidatorTag extends AbstractValidatorTag
Modifier and Type | Field and Description |
---|---|
private javax.el.ValueExpression |
regex |
private javax.el.ValueExpression |
VALIDATOR_ID_EXPR |
binding, validatorId
Constructor and Description |
---|
RegexValidatorTag() |
Modifier and Type | Method and Description |
---|---|
protected javax.faces.validator.Validator |
createValidator() |
void |
setPattern(javax.el.ValueExpression pattern)
Set the Regular Expression to use for validation.
|
createValidator, setBinding, setValidatorId
private javax.el.ValueExpression regex
private javax.el.ValueExpression VALIDATOR_ID_EXPR
public void setPattern(javax.el.ValueExpression pattern)
pattern
- A regular expression - needs to be escaped, @see java.util.regex .protected javax.faces.validator.Validator createValidator() throws javax.servlet.jsp.JspException
createValidator
in class AbstractValidatorTag
javax.servlet.jsp.JspException
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.