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 selectManyListbox not setting value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
selectManyListbox Issue
selectManyListBox to add/remove user Roles
JSF - SelectManyListBox doesnt populate on valeChangeevent
selectManyListbox - IllegalArgumentException