Project Documentation

Summary

Tag name: <t:validateRegExpr>
Validator class: org.apache.myfaces.custom.regexprvalidator.RegExprValidator
Tag class: org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag
validator id: org.apache.myfaces.validator.RegExpr
A custom validator for reg. expr., based upons Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions.

Usage

<h:inputText id="regExprValue"
                value="#{validateForm.regExpr}"
                required="true">
    <t:validateRegExpr pattern='\d{5}'/>
</h:inputText>

Instructions

pattern

see "examples/validate.jsp" for an example!

Attributes

Name Type Supports EL? Description
detailMessage String Yes
message String Yes
pattern String No the pattern, which is the base of the validation
summaryMessage String Yes