I am working on a jsp page which has a combo box:
<h:selectOneMenu disabled="#{controller.disabled}" id="actualType" value="#{controller.active.actualType}">
<f:selectItem itemLabel=" " itemValue=" " />
<f:selectItems id="ACTUAL" value="#{controller.types}" />
</h:selectOneMenu>
I need to get both the value and label for the currently selected Item. I tried adding binding to the but that always stays and the null value. If i put binding on the or on the i dont see a way to actual get the label from the currently selected Item.
Im sure it is something simple I am missing, any help would be greatly apperciated.
-edit-
thinking about the issue, I could just iterate over my list of selectItems and find the one whose value match the current selected value, then return that items description. While that would work, I would think there would be a more elegant solution.