Hi everybody,

I wonder if there is an elegant way to feed a ListMultipleChoice component
with a comma separated string (using a PropertyModel)

e.g. with the following property to be accessed by PropertyModel:

public String getMySelectedOptions() {
return "optionA,optionC";
}


...something like this:

List<String> allOptions = Arrays.asList(new
String[]{"optionA","optionB","optionC","optionD"});
new CheckBoxMultipleChoice("genreChoice", new PropertyModel(getModel(),
"mySelectedOptions")), allOptions);

Of course this does not work. But is there a elegant solution to make it
work? I am thinking of something acting similar to a converter for text
input fields, just the other way round :)

Thanks for any inspiration
-- 
View this message in context: 
http://www.nabble.com/How-to-feed-ListMultipleChoice-with-comma-separated-String-via-PropertyModel%29-tp20834160p20834160.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to