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 <[email protected]> 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 <[email protected]>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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>