This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF SelectOneListBox issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF SelectOneListBox issue" Watch "JSF SelectOneListBox issue" New topic

JSF SelectOneListBox issue

thomas jacob
Ranch Hand

Joined: May 19, 2005
Posts: 91
This is my backing bean which is session scoped

This is my JSF file

I am getting an output of Test <select I am not understanding how to debug and implement the selectOneListbox. Please help

H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

This definition is wrong, the value of the selectOneListbox would have to correspond to a string value. This string value would hold the selected item in the list.

So your managed bean will have one more deceleration

please put its getters and setters.

and your selectOneListbox will have

This should do it.

Harsh Jetly
I agree. Here's the link:
subject: JSF SelectOneListBox issue
jQuery in Action, 3rd edition