This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes selectManyListbox not setting value 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 "selectManyListbox not setting value" Watch "selectManyListbox not setting value" New topic
Author

selectManyListbox not setting value

Michael Peremsky
Greenhorn

Joined: Nov 07, 2008
Posts: 10
I am having trouble gettingmy selectManyListbox to set the selected values. All of the standard text fields populate but none of the select or multiselect dropdowns/lists select the stored values. I am pretty new to this so I have included everything that I have below, if you do not see it it is not there.

The #{collectionSelect.collections} returns a List<javax.faces.model.SelectItem> and works, the default value in the AdvancedSearchTab constructor is a valid key value in the selectManyListbox list.

Any help resolving this would be much appreciated.



Thanks

Mike
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

How did you populate List<javax.faces.model.SelectItem> collections ? Try to iterate through it and debug each SelectItem's value.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectManyListbox not setting value
 
Similar Threads
selectManyListBox to add/remove user Roles
JSF - SelectManyListBox doesnt populate on valeChangeevent
selectManyListbox - IllegalArgumentException
selectManyListbox
selectManyListbox Issue