wood burning stoves 2.0*
The moose likes JSF and the fly likes Highlighting selected values h:selectManyListbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Highlighting selected values h:selectManyListbox" Watch "Highlighting selected values h:selectManyListbox" New topic

Highlighting selected values h:selectManyListbox

Karthik Vijayarajan
Ranch Hand

Joined: Mar 13, 2005
Posts: 43
I have a listbox in my JSP and am trying to make a few values inside the listbox as selected.
My listbox code in JSP looks like

So,in the constructor of my backing bean,i do this.

This someList is an arraylist containing Long objects

But the values i am setting here in the backing bean are not showing up as selected in the JSP.

Can someone pls help me in getting thru this?


Karthik <br />SCJP 1.4 SCWCD 1.4 SCBCD 1.3
It is sorta covered in the JavaRanch Style Guide.
subject: Highlighting selected values h:selectManyListbox
Similar Threads
Using dropDown in jsf
h:selectOneMenu and Map bindings
selectManyListBox to add/remove user Roles
Problem with selectManyListbox