Add a child UISelectItems component to the UIComponent associated with the closed parent UIComponent tag.
When iterating over the
select items, toString()
must be called on
the
string rendered attribute values.
Version 2 of the specification introduces several new attributes, described below. These are: var, itemValue, itemLabel, itemDescription, itemDisabled, and itemLabelEscaped.
Info | Value |
---|---|
Component Type | jakarta.faces.SelectItems |
Handler Class | None |
Renderer Type | None |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
binding |
false
| jakarta.el.ValueExpression
(must evaluate to jakarta.faces.component.UIComponent )
|
Value binding expression to a backing bean property bound to the component instance for the UIComponent created by this tag. |
id | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| Component identifier of the UISelectItems component to be created. |
itemDescription |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.String )
|
evaluates to a String that will serve as the description to be shown for the item. |
itemDisabled |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.Boolean )
|
evaluates to a boolean that will determine if the item value is selectable or not. |
itemLabel |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.String )
|
evaluates to a String that will serve as the label to be shown for the item. |
itemLabelEscaped |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.Boolean )
|
evaluates to a boolean that will
determine if the rendered markup for the item receives normal Faces HTML
escaping or not. If not specified, the
runtime must behave as if the value were |
itemValue |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.Object )
|
This attribute lets you refer to a property of the current member of the collection referenced by the "value" attribute, using the value of the "var" attribute as the base. For example, #{n.id}. |
noSelectionValue |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.Boolean )
|
Is either an EL expression pointing to the element in the value collection whose value should be marked as a “no selection” item, or a literal string that exactly matches the value of the item in the collection that must be marked as the “no selection” item. If the user selects such an item and the field is marked as required, then it will not pass validation. |
value |
false
| jakarta.el.ValueExpression
(must evaluate to java.lang.Object )
|
Value expression pointing at any
In the preceding example, the
|
var | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
|
Expose the value from the
|