Class AbstractConverterTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.faces.webapp.ConverterELTag
com.sun.faces.taglib.jsf_core.AbstractConverterTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
ConvertDateTimeTag, ConverterTag, ConvertNumberTag

public class AbstractConverterTag
extends ConverterELTag

Base class for all ConverterTags.

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 converterId
    The identifier of the Converter 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
    AbstractConverterTag()  
  • Method Summary

    Modifier and Type Method Description
    protected Converter createConverter()
    Create and return a new Converter to be registered on our surrounding UIComponent.
    protected static Converter createConverter​(jakarta.el.ValueExpression converterId, 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 Converter instance to be created.
    void setConverterId​(jakarta.el.ValueExpression converterId)
    Set the identifer of the Converter instance to be created.

    Methods inherited from class jakarta.faces.webapp.ConverterELTag

    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.

    • converterId

      protected jakarta.el.ValueExpression converterId

      The identifier of the Converter 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 Converter instance to be created.

      Parameters:
      binding - The new expression
    • setConverterId

      public void setConverterId​(jakarta.el.ValueExpression converterId)

      Set the identifer of the Converter instance to be created.

      Parameters:
      converterId - The identifier of the converter instance to be created.
    • createConverter

      protected Converter createConverter() throws jakarta.servlet.jsp.JspException
      Description copied from class: ConverterELTag

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

      Specified by:
      createConverter in class ConverterELTag
      Returns:
      the Converter
      Throws:
      jakarta.servlet.jsp.JspException - if a new instance cannot be created
    • createConverter

      protected static Converter createConverter​(jakarta.el.ValueExpression converterId, jakarta.el.ValueExpression binding, FacesContext facesContext)