Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectOneMenu label value

 
gary stines
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was discussed earlier. Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic