• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF SelectOneListBox issue

 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic