Two Laptop Bag
The moose likes JSF and the fly likes selectOneMenu label value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "selectOneMenu label value" Watch "selectOneMenu label value" New topic
Author

selectOneMenu label value

gary stines
Greenhorn

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}"/>
</h:selectOneMenu>

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: selectOneMenu label value
 
Similar Threads
selectOneMenu in the header of dataTable
Issue With selectOneMenu ValueChangeListener Not Firing
how to add a seperator in <h:selectOneMenu>
Null first value in a SelectOneMenu
A Problem with events