File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF SelectOneListBox issue" Watch "JSF SelectOneListBox issue" New topic
Author

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSF SelectOneListBox issue