Package com.sun.faces.taglib.jsf_core
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.ValueExpressionbindingTheValueExpressionthat evaluates to an object that implementsConverter.protected jakarta.el.ValueExpressionconverterIdThe identifier of theConverterinstance to be created. -
Constructor Summary
Constructors Constructor Description AbstractConverterTag() -
Method Summary
Modifier and Type Method Description protected ConvertercreateConverter()Create and return a newConverterto be registered on our surroundingUIComponent.protected static ConvertercreateConverter(jakarta.el.ValueExpression converterId, 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 theConverterinstance to be created.voidsetConverterId(jakarta.el.ValueExpression converterId)Set the identifer of theConverterinstance to be created.
-
Field Details
-
binding
protected jakarta.el.ValueExpression bindingThe
ValueExpressionthat evaluates to an object that implementsConverter. -
converterId
protected jakarta.el.ValueExpression converterIdThe identifier of the
Converterinstance to be created.
-
-
Constructor Details
-
AbstractConverterTag
public AbstractConverterTag()
-
-
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 theConverterinstance to be created.- Parameters:
binding- The new expression
-
setConverterId
public void setConverterId(jakarta.el.ValueExpression converterId)Set the identifer of the
Converterinstance to be created.- Parameters:
converterId- The identifier of the converter instance to be created.
-
createConverter
Description copied from class:ConverterELTagCreate and return a new
Converterto be registered on our surroundingUIComponent.- Specified by:
createConverterin classConverterELTag- 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)
-