public class SelectItemTag
extends jakarta.faces.webapp.UIComponentELTag
selectitem custom tag.| Modifier and Type | Field and 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 |
bodyContent, pageContext, UNIQUE_ID_PREFIXEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
SelectItemTag() |
| Modifier and Type | Method and 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 the
rendererType property that selects the Renderer to be used for encoding this
component, or null 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(jakarta.faces.component.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) |
createComponent, getELContext, hasBinding, release, setBinding, setRenderedaddChild, 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, setupResponseWriterprotected jakarta.el.ValueExpression itemValue
protected jakarta.el.ValueExpression itemLabel
protected jakarta.el.ValueExpression itemDescription
protected jakarta.el.ValueExpression itemDisabled
protected jakarta.el.ValueExpression noSelectionOption
protected jakarta.el.ValueExpression value
public void setItemValue(jakarta.el.ValueExpression value)
public void setItemLabel(jakarta.el.ValueExpression label)
public void setItemDescription(jakarta.el.ValueExpression itemDescription)
public void setItemDisabled(jakarta.el.ValueExpression itemDisabled)
public void setValue(jakarta.el.ValueExpression value)
public void setNoSelectionOption(jakarta.el.ValueExpression noSelectionOption)
public String getRendererType()
jakarta.faces.webapp.UIComponentTagBase
Return the rendererType property that selects the Renderer to be used for encoding this
component, or null to ask the component to render itself directly. Subclasses must override this method
to return the appropriate value.
getRendererType in class jakarta.faces.webapp.UIComponentTagBasepublic String getComponentType()
jakarta.faces.webapp.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 the UIComponent instance for this
tag. Subclasses must override this method to return the appropriate value.
getComponentType in class jakarta.faces.webapp.UIComponentTagBaseprotected void setProperties(jakarta.faces.component.UIComponent component)
jakarta.faces.webapp.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 the UIComponent 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 properties
foo and bar 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 the rendered property is specified for this tag handler
instance.rendererType - Set if the getRendererType() method returns a non-null value.setProperties in class jakarta.faces.webapp.UIComponentELTagcomponent - UIComponent whose properties are to be overriddenpublic jakarta.el.ValueExpression getEscape()
public void setEscape(jakarta.el.ValueExpression escape)
escape - New value of property escape.Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.