I want to get value and label of the selected items of a h:selectManyListbox
.
I've this:
<h:selectManyListbox id="myList" size="10" value="#{search.selectedItems}">
<f:selectItems id="myListID" value="#{search.itemsList}">
</h:selectManyListbox>
The problem is that when I submit the form I get only the a List<String>
value and I need both: values and labels selected.
How can I get this?