Hi,
how can I pre-select some List-Items, when showing the form with the
ListMultipleChoice?
Thank you for some advice!
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
just make sure that the model, which contains the 'selected' items, does
already contain the selected items.
Your model probably maps to an object property. (in this case, the property
is a collection(List/set) . So, add te 'pre-selection' to the collection,
and the ListMultipleChoice will
and in the html it is also showed as selected ?
- Ursprüngliche Mail
Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
An: users@wicket.apache.org
Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr
Betreff: Re: ListMultipleChoice - Pre fill out
just make sure that the model
Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
An: users@wicket.apache.org
Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr
Betreff: Re: ListMultipleChoice - Pre fill out
just make sure that the model, which contains the 'selected' items, does
already contain the selected items
fantastic pedro! it works really great!
- Ursprüngliche Mail
Von: Pedro Santos pedros...@gmail.com
An: users@wicket.apache.org
Gesendet: Montag, den 26. Oktober 2009, 14:13:55 Uhr
Betreff: Re: ListMultipleChoice - Pre fill out
yes:
List options = Arrays.asList(a, b, c);
add(new