Package com.sun.faces.taglib.jsf_core
Class ValidateLengthTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.faces.webapp.ValidatorELTag
com.sun.faces.taglib.jsf_core.AbstractValidatorTag
com.sun.faces.taglib.jsf_core.MaxMinValidatorTag
com.sun.faces.taglib.jsf_core.ValidateLengthTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class ValidateLengthTag extends MaxMinValidatorTag
ValidateLengthTag is the tag handler class for
validate_length tag- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected intmaximumprotected jakarta.el.ValueExpressionmaximumExpressionprotected intminimumprotected jakarta.el.ValueExpressionminimumExpression -
Constructor Summary
Constructors Constructor Description ValidateLengthTag() -
Method Summary
Modifier and Type Method Description protected ValidatorcreateValidator()Create and return a newValidatorto be registered on our surroundingUIComponent.intdoStartTag()Create a new instance of the specifiedValidatorclass, and register it with theUIComponentinstance associated with our most immediately surroundingUIComponentTagBaseinstance, if theUIComponentinstance was created by this execution of the containing Jakarta Server Pages page.voidsetMaximum(jakarta.el.ValueExpression newMaximum)voidsetMinimum(jakarta.el.ValueExpression newMinimum)Methods inherited from class com.sun.faces.taglib.jsf_core.AbstractValidatorTag
createValidator, setBinding, setValidatorId
-
Field Details
-
maximumExpression
protected jakarta.el.ValueExpression maximumExpression -
minimumExpression
protected jakarta.el.ValueExpression minimumExpression -
maximum
protected int maximum -
minimum
protected int minimum
-
-
Constructor Details
-
ValidateLengthTag
public ValidateLengthTag()
-
-
Method Details
-
setMaximum
public void setMaximum(jakarta.el.ValueExpression newMaximum) -
setMinimum
public void setMinimum(jakarta.el.ValueExpression newMinimum) -
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionDescription copied from class:ValidatorELTagCreate a new instance of the specified
Validatorclass, and register it with theUIComponentinstance associated with our most immediately surroundingUIComponentTagBaseinstance, if theUIComponentinstance was created by this execution of the containing Jakarta Server Pages page.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classValidatorELTag- Throws:
jakarta.servlet.jsp.JspException- if a Jakarta Server Pages error occurs
-
createValidator
Description copied from class:ValidatorELTagCreate and return a new
Validatorto be registered on our surroundingUIComponent.- Overrides:
createValidatorin classAbstractValidatorTag- Returns:
- the created
Validator - Throws:
jakarta.servlet.jsp.JspException- if a new instance cannot be created
-