You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dane Laverty <da...@gmail.com> on 2009/06/23 01:01:48 UTC
Re: How to Make a Multiselect Drop Down or Check Box List
Collapsible?
I haven't tried it, but I imagine you could create a JavaScript onclick
event that changes the SIZE attribute on the <SELECT>.
On Mon, Jun 22, 2009 at 9:02 AM, Keith Bennett <kb...@fedcsc.com>wrote:
> We would like to have a multiselect component that only takes up a
> single line on the page when not active. For example, something that
> looks and behaves like the DropDownChoice, but that allows multiple
> selection when activated, would be nice.
>
> Is there such a thing in Wicket?
>
> Thanks,
> Keith
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: How to Make a Multiselect Drop Down or Check Box List
Collapsible?
Posted by Dane Laverty <da...@gmail.com>.
I find that putting
tag.put("onfocus", "this.size = 5;");
> tag.put("onblur", "this.size = 1;");
> tag.put("size", "1");
> tag.put("multiple", "multiple");
into DropDownChoice.onComponentTag() does most of what you're looking for.
You'll have to play around with it some, but that might help.
On Mon, Jun 22, 2009 at 4:01 PM, Dane Laverty <da...@gmail.com> wrote:
> I haven't tried it, but I imagine you could create a JavaScript onclick
> event that changes the SIZE attribute on the <SELECT>.
>
>
> On Mon, Jun 22, 2009 at 9:02 AM, Keith Bennett <kb...@fedcsc.com>wrote:
>
>> We would like to have a multiselect component that only takes up a
>> single line on the page when not active. For example, something that
>> looks and behaves like the DropDownChoice, but that allows multiple
>> selection when activated, would be nice.
>>
>> Is there such a thing in Wicket?
>>
>> Thanks,
>> Keith
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>