Java Reference
In-Depth Information
All components that can display multiple options, such as
Checkbox
Group
and
Radio Button Group
, can be configured this way.
Notice we added an "empty" selection at the top of the list. This allows the users not
to enter any value for our drop-down.
We can add, delete, and move items as necessary by using the buttons to
the right of the window.
We now need to bind the user-selected value to a property in one of the managed
beans. To do this we need to assign a value binding expression to the
selected
property of the drop-down component by clicking on the ellipsis (
...
) button next to it
on the
Properties
window. At this point we can select a property from the managed
beans and assign it to this attribute.