Class SelectItemTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag
,jakarta.servlet.jsp.tagext.IterationTag
,jakarta.servlet.jsp.tagext.JspIdConsumer
,jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.Tag
public class SelectItemTag extends UIComponentELTag
selectitem
custom tag.-
Field Summary
Fields Modifier and Type Field Description protected jakarta.el.ValueExpression
itemDescription
protected jakarta.el.ValueExpression
itemDisabled
protected jakarta.el.ValueExpression
itemLabel
protected jakarta.el.ValueExpression
itemValue
protected jakarta.el.ValueExpression
noSelectionOption
protected jakarta.el.ValueExpression
value
Fields inherited from class jakarta.faces.webapp.UIComponentClassicTagBase
bodyContent, pageContext, UNIQUE_ID_PREFIX
-
Constructor Summary
Constructors Constructor Description SelectItemTag()
-
Method Summary
Modifier and Type Method Description String
getComponentType()
Return the component type for the component that is or will be bound to this tag.jakarta.el.ValueExpression
getEscape()
Getter for property escape.String
getRendererType()
Return therendererType
property that selects theRenderer
to be used for encoding this component, ornull
to ask the component to render itself directly.void
setEscape(jakarta.el.ValueExpression escape)
Setter for property escape.void
setItemDescription(jakarta.el.ValueExpression itemDescription)
void
setItemDisabled(jakarta.el.ValueExpression itemDisabled)
void
setItemLabel(jakarta.el.ValueExpression label)
void
setItemValue(jakarta.el.ValueExpression value)
void
setNoSelectionOption(jakarta.el.ValueExpression noSelectionOption)
protected void
setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set.void
setValue(jakarta.el.ValueExpression value)
Methods inherited from class jakarta.faces.webapp.UIComponentELTag
createComponent, getELContext, hasBinding, release, setBinding, setRendered
Methods inherited from class jakarta.faces.webapp.UIComponentClassicTagBase
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doEndTag, doInitBody, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter
-
Field Details
-
itemValue
protected jakarta.el.ValueExpression itemValue -
itemLabel
protected jakarta.el.ValueExpression itemLabel -
itemDescription
protected jakarta.el.ValueExpression itemDescription -
itemDisabled
protected jakarta.el.ValueExpression itemDisabled -
noSelectionOption
protected jakarta.el.ValueExpression noSelectionOption -
value
protected jakarta.el.ValueExpression value
-
-
Constructor Details
-
SelectItemTag
public SelectItemTag()
-
-
Method Details
-
setItemValue
public void setItemValue(jakarta.el.ValueExpression value) -
setItemLabel
public void setItemLabel(jakarta.el.ValueExpression label) -
setItemDescription
public void setItemDescription(jakarta.el.ValueExpression itemDescription) -
setItemDisabled
public void setItemDisabled(jakarta.el.ValueExpression itemDisabled) -
setValue
public void setValue(jakarta.el.ValueExpression value) -
setNoSelectionOption
public void setNoSelectionOption(jakarta.el.ValueExpression noSelectionOption) -
getRendererType
Description copied from class:UIComponentTagBase
Return the
rendererType
property that selects theRenderer
to be used for encoding this component, ornull
to ask the component to render itself directly. Subclasses must override this method to return the appropriate value.- Specified by:
getRendererType
in classUIComponentTagBase
- Returns:
- the renderer type
-
getComponentType
Description copied from class:UIComponentTagBase
Return the component type for the component that is or will be bound to this tag. This value can be passed to
Application.createComponent(java.lang.String)
to create theUIComponent
instance for this tag. Subclasses must override this method to return the appropriate value.- Specified by:
getComponentType
in classUIComponentTagBase
- Returns:
- the component type
-
setProperties
Description copied from class:UIComponentELTag
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified
UIComponent
was in fact created during the execution of this tag handler instance, and this call will occur BEFORE theUIComponent
is added to the view.Tag subclasses that want to support additional set properties must ensure that the base class
setProperties()
method is still called. A typical implementation that supports extra propertiesfoo
andbar
would look something like this:protected void setProperties(UIComponent component) { super.setProperties(component); if (foo != null) { component.setAttribute("foo", foo); } if (bar != null) { component.setAttribute("bar", bar); } }
The default implementation overrides the following properties:
rendered
- Set if a value for therendered
property is specified for this tag handler instance.rendererType
- Set if thegetRendererType()
method returns a non-null value.
- Overrides:
setProperties
in classUIComponentELTag
- Parameters:
component
-UIComponent
whose properties are to be overridden
-
getEscape
public jakarta.el.ValueExpression getEscape()Getter for property escape.- Returns:
- Value of property escape.
-
setEscape
public void setEscape(jakarta.el.ValueExpression escape)Setter for property escape.- Parameters:
escape
- New value of property escape.
-