Package com.sun.faces.taglib.jsf_core
Class AbstractValidatorTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.faces.webapp.ValidatorELTag
com.sun.faces.taglib.jsf_core.AbstractValidatorTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
- Direct Known Subclasses:
MaxMinValidatorTag,RegexValidatorTag,ValidatorTag
public class AbstractValidatorTag extends ValidatorELTag
Base class for all ValidatorTags.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.el.ValueExpressionbindingTheValueExpressionthat evaluates to an object that implementsConverter.protected jakarta.el.ValueExpressionvalidatorIdThe identifier of theValidatorinstance to be created. -
Constructor Summary
Constructors Constructor Description AbstractValidatorTag() -
Method Summary
Modifier and Type Method Description protected ValidatorcreateValidator()Create and return a newValidatorto be registered on our surroundingUIComponent.protected static ValidatorcreateValidator(jakarta.el.ValueExpression validatorId, jakarta.el.ValueExpression binding, FacesContext facesContext)voidsetBinding(jakarta.el.ValueExpression binding)Set the expression that will be used to create aValueExpressionthat references a backing bean property of theValidatorinstance to be created.voidsetValidatorId(jakarta.el.ValueExpression validatorId)Set the identifer of theValidatorinstance to be created.
-
Field Details
-
binding
protected jakarta.el.ValueExpression bindingThe
ValueExpressionthat evaluates to an object that implementsConverter. -
validatorId
protected jakarta.el.ValueExpression validatorIdThe identifier of the
Validatorinstance to be created.
-
-
Constructor Details
-
AbstractValidatorTag
public AbstractValidatorTag()
-
-
Method Details
-
setBinding
public void setBinding(jakarta.el.ValueExpression binding)Set the expression that will be used to create a
ValueExpressionthat references a backing bean property of theValidatorinstance to be created.- Parameters:
binding- The new expression
-
setValidatorId
public void setValidatorId(jakarta.el.ValueExpression validatorId)Set the identifer of the
Validatorinstance to be created.- Parameters:
validatorId- The identifier of the converter instance to be created.
-
createValidator
Description copied from class:ValidatorELTagCreate and return a new
Validatorto be registered on our surroundingUIComponent.- Specified by:
createValidatorin classValidatorELTag- Returns:
- the created
Validator - Throws:
jakarta.servlet.jsp.JspException- if a new instance cannot be created
-
createValidator
protected static Validator createValidator(jakarta.el.ValueExpression validatorId, jakarta.el.ValueExpression binding, FacesContext facesContext)
-