File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
getting label of selectonemenu by findcomponent
Joined: Mar 14, 2012
Jul 30, 2012 08:53:23
hi, i should access a selectonemenu's selected item's label, i can get value but what about label?
Joined: May 12, 2009
Jul 30, 2012 12:21:15
I think this will do it:
comp = ... findComponent ...
label = (String) comp.getAttributes().get("label");
I agree. Here's the link:
subject: getting label of selectonemenu by findcomponent
How to get SelectItem's Label in backing Bean
Auto Refresh using selectOneMenu tag
selectOneMenu label value
P:selectOneMenu first ajax reuqest issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015