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.ValueExpression binding
    The ValueExpression that evaluates to an object that implements Converter.
    protected jakarta.el.ValueExpression validatorId
    The identifier of the Validator instance to be created.

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractValidatorTag()  
  • Method Summary

    Modifier and Type Method Description
    protected Validator createValidator()
    Create and return a new Validator to be registered on our surrounding UIComponent.
    protected static Validator createValidator​(jakarta.el.ValueExpression validatorId, jakarta.el.ValueExpression binding, FacesContext facesContext)  
    void setBinding​(jakarta.el.ValueExpression binding)
    Set the expression that will be used to create a ValueExpression that references a backing bean property of the Validator instance to be created.
    void setValidatorId​(jakarta.el.ValueExpression validatorId)
    Set the identifer of the Validator instance to be created.

    Methods inherited from class jakarta.faces.webapp.ValidatorELTag

    doStartTag

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • binding

      protected jakarta.el.ValueExpression binding

      The ValueExpression that evaluates to an object that implements Converter.

    • validatorId

      protected jakarta.el.ValueExpression validatorId

      The identifier of the Validator instance to be created.

  • Constructor Details

  • Method Details

    • setBinding

      public void setBinding​(jakarta.el.ValueExpression binding)

      Set the expression that will be used to create a ValueExpression that references a backing bean property of the Validator instance to be created.

      Parameters:
      binding - The new expression
    • setValidatorId

      public void setValidatorId​(jakarta.el.ValueExpression validatorId)

      Set the identifer of the Validator instance to be created.

      Parameters:
      validatorId - The identifier of the converter instance to be created.
    • createValidator

      protected Validator createValidator() throws jakarta.servlet.jsp.JspException
      Description copied from class: ValidatorELTag

      Create and return a new Validator to be registered on our surrounding UIComponent.

      Specified by:
      createValidator in class ValidatorELTag
      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)