Wicket 1.5.6 Inspector Session: 857 bytes Page: 11.7K Remove
compref
Source code

wicket.markup.html.form.ListMultipleChoice

[back to the reference]

A ListChoice component lets users select a multiple values from a scrollable list.

Select your favorite sites


Select some of these excellent choices









Behind the Scenes

Example HTML

<span wicket:id="sites">
</span>
<span wicket:id="choices">
</span>

Example Code

    CheckBoxMultipleChoice siteChoice = new CheckBoxMultipleChoice("sites", SITES);
    form.add(siteChoice);

    ListMultipleChoice manyChoice = new CheckBoxMultipleChoice("choices", MANY_CHOICES);
    form.add(manyChoice);

Further examples & and comments/explanations may be available in the source code.