Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

selectManyListbox not setting value

 
Michael Peremsky
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you populate List<javax.faces.model.SelectItem> collections ? Try to iterate through it and debug each SelectItem's value.
 
permaculture is largely about replacing oil with people. And one tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!