AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
fantastic pedro! it works really great!



- Ursprüngliche Mail 
Von: Pedro Santos 
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 ListMultipleChoice("select", new
Model((Serializable)Arrays.asList("b")), options));


On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig wrote:

> and in the html it is also showed as "selected" ?
>
>
>
> - Ursprüngliche Mail 
> Von: Pieter Degraeuwe 
> 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.
>
> 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 follow..
>
> On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig  >wrote:
>
> > 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: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Pieter Degraeuwe
> Systemworks bvba
> Belgiëlaan 61
> 9070 Destelbergen
> GSM: +32 (0)485/68.60.85
> Email: pieter.degrae...@systemworks.be
> visit us at http://www.systemworks.be
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
and in the html it is also showed as "selected" ?



- Ursprüngliche Mail 
Von: Pieter Degraeuwe 
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.

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 follow..

On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig wrote:

> 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: users-h...@wicket.apache.org
>
>


-- 
Pieter Degraeuwe
Systemworks bvba
Belgiëlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degrae...@systemworks.be
visit us at http://www.systemworks.be





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org