[
https://issues.apache.org/jira/browse/WICKET-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722318#action_12722318
]
Juergen Donnerstag commented on WICKET-2331:
--------------------------------------------
The reason why the javascript gets included is because it is NOT the same. Via
velocity, a template and a number of variables the javascript is generated.
But, an that it is reason why your application probably doesn't work, the
component id is used to generate the javascript and not the component path.
Hence you must make sure that your DateTextField etc have DIFFERENT ids.
Otherwise the generated javascript is the same and it will not work.
Javascript can be compressed with
Application.get().getResourceSettings().getStripJavascriptCommentsAndWhitespace())
> Using 2 date fields and 2 date pickers create 2 inline javascript
> -----------------------------------------------------------------
>
> Key: WICKET-2331
> URL: https://issues.apache.org/jira/browse/WICKET-2331
> Project: Wicket
> Issue Type: Bug
> Components: wicket-datetime
> Affects Versions: 1.4-RC4
> Reporter: Pierre Wargnier
>
> You create 2 DateTextField in the same page and add one new DatePicker to
> each of them.
> It will create twice the same inline javascript: of about 2 786 bytes with
> the licence in it. If you want X field, you will get a payload of X * 2786
> bytes.
> If you add the same DatePicker object to the 2 DateTextField, you have only
> one javascript but the second DatePicker does not work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.