File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

selectManyListbox not setting value

Michael Peremsky

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.


Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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:
subject: selectManyListbox not setting value
jQuery in Action, 3rd edition