UI-Component Sets
Project Documentation


Tag name: <f:validateLength>
Validator class: javax.faces.validator.LengthValidator
Tag class: org.apache.myfaces.taglib.core.ValidateLengthTag
validator id: javax.faces.Length
Creates a validator and associateds it with the nearest parent UIComponent. When invoked, the validator ensures that values are valid strings with a length that lies within the minimum and maximum values specified. Commonly associated with a h:inputText entity. Unless otherwise specified, all attributes accept static values or EL expressions. see Javadoc of JSF Specification


Name Type Supports EL? Description
binding javax.faces.validator.LengthValidator Only EL A ValueExpression that evaluates to a LengthValidator.
maximum int Yes The largest value that should be considered valid.
minimum int Yes The smallest value that should be considered valid.