This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to show multiple saved values as selected in h:selectManyListBox  RSS feed

 
Amee Dabo
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to show multiple values in list box& I should be able to select & save & retrieve saved values. e.g. In a employee table I have column for skills in which I want to store selected skills as comma seperated string.

The list for skills which I am showing using h:selectManyListBox tag. When I am selecting more than 1 values here those I am saving in database as comma seperated string. e.g html,jsp,vb,java etc. But when i am opening the details for this employee for whom I have saved multiple skills; I am not getting how to show already saved skills as selected in this select many box.

can anybody help please..

Thanks in advance,
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The valuebinding of the selectManyListBox should be mapped to a List.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!