public class SelectItemTag extends UIComponentELTag
selectitem
custom tag.Modifier and Type | Field and Description |
---|---|
protected javax.el.ValueExpression |
itemDescription |
protected javax.el.ValueExpression |
itemDisabled |
protected javax.el.ValueExpression |
itemLabel |
protected javax.el.ValueExpression |
itemValue |
protected javax.el.ValueExpression |
noSelectionOption |
protected javax.el.ValueExpression |
value |
bodyContent, pageContext, UNIQUE_ID_PREFIX
log
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.
|
javax.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(javax.el.ValueExpression escape)
Setter for property escape.
|
void |
setItemDescription(javax.el.ValueExpression itemDescription) |
void |
setItemDisabled(javax.el.ValueExpression itemDisabled) |
void |
setItemLabel(javax.el.ValueExpression label) |
void |
setItemValue(javax.el.ValueExpression value) |
void |
setNoSelectionOption(javax.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(javax.el.ValueExpression value) |
createComponent, getELContext, hasBinding, release, setBinding, setRendered
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
protected javax.el.ValueExpression itemValue
protected javax.el.ValueExpression itemLabel
protected javax.el.ValueExpression itemDescription
protected javax.el.ValueExpression itemDisabled
protected javax.el.ValueExpression noSelectionOption
protected javax.el.ValueExpression value
public void setItemValue(javax.el.ValueExpression value)
public void setItemLabel(javax.el.ValueExpression label)
public void setItemDescription(javax.el.ValueExpression itemDescription)
public void setItemDisabled(javax.el.ValueExpression itemDisabled)
public void setValue(javax.el.ValueExpression value)
public void setNoSelectionOption(javax.el.ValueExpression noSelectionOption)
public String getRendererType()
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 UIComponentTagBase
public String getComponentType()
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 UIComponentTagBase
protected void setProperties(UIComponent component)
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 UIComponentELTag
component
- UIComponent
whose properties are to be
overriddenpublic javax.el.ValueExpression getEscape()
public void setEscape(javax.el.ValueExpression escape)
escape
- New value of property escape.Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.