This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSF and the fly likes selectOneMenu label value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneMenu label value" Watch "selectOneMenu label value" New topic

selectOneMenu label value

gary stines

Joined: Mar 11, 2002
Posts: 19
How can I programatically get the label value from a selectOneMenu tag

<h:selectOneMenu value= "#{person.personid}">
<f:selectItems value="#{person.personList}"/>

I can access the personid in the backing bean, but how can I easily access the corresponding label value
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
This was discussed earlier. Hope it helps.

- Varun
I agree. Here's the link:
subject: selectOneMenu label value
It's not a secret anymore!