You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by tech7 <te...@gmail.com> on 2011/04/15 15:55:54 UTC

Re: Choose One problem with DropDownChoice

Any suggestion?

-----
Wicket-Java
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Choose One problem with DropDownChoice

Posted by Mike Mander <wi...@gmx.de>.
Am 15.04.2011 15:55, schrieb tech7:
> Any suggestion?
>
> -----
> Wicket-Java
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
new DropDownChoice("myId", Model.of(selected), ListModel.of(choices));
If you remove the item from choices the ddc can't set anything selected 
anymore. So it displays "Choose one".
If you want to display another item, set it to model representing 
selected item in ddc.

Cheers
Mike


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