Class LengthValidator

  • All Implemented Interfaces:
    EventListener, PartialStateHolder, StateHolder, Validator

    @JSFValidator(name="f:validateLength",
                  bodyContent="empty",
                  tagClass="org.apache.myfaces.taglib.core.ValidateLengthTag")
    @JSFJspProperty(name="binding",
                    returnType="javax.faces.validator.LengthValidator",
                    longDesc="A ValueExpression that evaluates to a LengthValidator.")
    public class LengthValidator
    extends Object
    implements Validator, PartialStateHolder
    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