You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Harro Lissenberg <ha...@gmail.com> on 2008/02/26 12:54:22 UTC
DatePicker creates lots of duplicate javascript
Hi,
I have a page that can contain dozens of DateTextFieldS. If I add a
new DatePicker (yui) to each of this fields a lot of duplicate
javascript is generated since the datepicker JS code is hardcoded to
the textfield. Is there a workaround for this?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: DatePicker creates lots of duplicate javascript
Posted by Gerolf Seitz <ge...@gmail.com>.
Hi Harro,
the javascript is for 2 things.
1) dynamic loading of yui libraries.
2) configuration for the datepicker, because you can have datepickers with
different configuration on one page.
however, if you find a better way, please submit a patch to jira.
cheers,
Gerolf
On Tue, Feb 26, 2008 at 12:54 PM, Harro Lissenberg <
harro.lissenberg@gmail.com> wrote:
> Hi,
>
> I have a page that can contain dozens of DateTextFieldS. If I add a
> new DatePicker (yui) to each of this fields a lot of duplicate
> javascript is generated since the datepicker JS code is hardcoded to
> the textfield. Is there a workaround for this?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>