aspose file tools*
The moose likes JSF and the fly likes Getting the selected value from SelectOneListbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Getting the selected value from SelectOneListbox" Watch "Getting the selected value from SelectOneListbox" New topic
Author

Getting the selected value from SelectOneListbox

Ace McCloud
Greenhorn

Joined: Jan 29, 2008
Posts: 1
Hi,
I have a jsf page which has already two list boxes prepopulated.
1)SelectManyListbox (containing a list of applications(Strings such as Pizza App,Game Store App etall)
2)SelectOneListbox [selectOneListbox1](containing report type: which is either Daily ,Weekly or Monthly.)
Important thing about this listbox is that on change of this listbox's value
I repaint the jsf page with another selectOneListbox[selectOneListbox2] whose values depend on my first selectOneListbox.

For eg: If I select "Daily" in my selectOneListbox1 then my selectOneListbox2 gets populated with values today ,yesterday ,this week.
Similarly for Week and Month.

Problem is the value from my selectOneListbox2 is not available to my backing bean no matter what I do.

I have tried value change listener,submitting the form,etall stuff to get the selected value for my selectOneListbox2.


"Every story has a happy ending........but if it doesnt then the story hasnt come to an end yet !!"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the selected value from SelectOneListbox
 
Similar Threads
Help - question on selectOneListbox and page reloads
JSF2 CRUD DataTable and SelectOneListBox Questions
JSF and JQuery - error with selectOneListBox
problem with SelectOneListbox
selectOneListbox value from an ArrayList