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
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: 14688
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: selectManyListbox not setting value