my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Getting the selected value from SelectOneListbox" Watch "Getting the selected value from SelectOneListbox" New topic

Getting the selected value from SelectOneListbox

Ace McCloud

Joined: Jan 29, 2008
Posts: 1
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:
subject: Getting the selected value from SelectOneListbox
Similar Threads
JSF2 CRUD DataTable and SelectOneListBox Questions
JSF and JQuery - error with selectOneListBox
Help - question on selectOneListbox and page reloads
selectOneListbox value from an ArrayList
problem with SelectOneListbox