myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob99 <>
Subject Chosen label from an HtmlSelectOneMenu?
Date Tue, 04 Sep 2007 16:31:29 GMT


I have bound an "HtmlSelectOneMenu" to my backing bean using "binding=..."
on the tag.  I can get the chosen "value" easily enough with:

    HtmlSelectOneMenu m;
    String chosenValue = m.getValue();

Is there any way to get the "label" of the chosen item instead of the
"value" from the component?  Or is it absolutely necessary to query the
model that populated the "HtmlSelectOneMenu" in the first place?

-Thank you!
View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message