• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The valuebinding of the selectManyListBox should be mapped to a List.
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic