In multiple select if I give the value, its not getting as selected for all the values, Instead it selected only the first value. For Ex,
#{select 'roles', items:roleList, id:'roles',multiple:'multiple',
value:params['roles']}
In this, if params[‘roles’] has two values only the first value getting selected. How to make two values as selected
If you look at the documentation for the select tag, it expects a single value in the value field. As such, I don’t think the select tag will perform what you are looking for.
So, I would suggest a couple of things.
#{list}tag