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 ConverterTag
s.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.el.ValueExpression
binding
TheValueExpression
that evaluates to an object that implementsConverter
.protected jakarta.el.ValueExpression
converterId
The identifier of theConverter
instance to be created. -
Constructor Summary
Constructors Constructor Description AbstractConverterTag()
-
Method Summary
Modifier and Type Method Description protected Converter
createConverter()
Create and return a newConverter
to be registered on our surroundingUIComponent
.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 aValueExpression
that references a backing bean property of theConverter
instance to be created.void
setConverterId(jakarta.el.ValueExpression converterId)
Set the identifer of theConverter
instance to be created.
-
Field Details
-
binding
protected jakarta.el.ValueExpression bindingThe
ValueExpression
that evaluates to an object that implementsConverter
. -
converterId
protected jakarta.el.ValueExpression converterIdThe identifier of the
Converter
instance 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
ValueExpression
that references a backing bean property of theConverter
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
Description copied from class:ConverterELTag
Create and return a new
Converter
to be registered on our surroundingUIComponent
.- Specified by:
createConverter
in 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)
-