Class LengthValidator

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

    @JSFValidator(name="f:validateLength",
                  bodyContent="empty")
    @JSFJspProperty(name="binding",
                    returnType="jakarta.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