myfaces-users mailing list archives

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

Hello,

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: http://www.nabble.com/Chosen-label-from-an-HtmlSelectOneMenu--tf4378820.html#a12481694
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message