[
https://issues.apache.org/jira/browse/WICKET-4466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4466.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0-RC1
Introduced org.apache.wicket.request.resource.ExternalUrlResourceReference.
To use it:
application.getJavaScriptLibrarySettings().setJQueryReference(new
ExternalUrlResourceReference("http://example.com/jquery.js"));
> Use an external host for the static javascript files (specially JQuery)
> -----------------------------------------------------------------------
>
> Key: WICKET-4466
> URL: https://issues.apache.org/jira/browse/WICKET-4466
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.0.0-beta1
> Reporter: Ronald Tetsuo Miura
> Assignee: Martin Grigorov
> Labels: ajax, cdn, jquery
> Fix For: 6.0.0-RC1
>
>
> There should be some (easy) way to specify an external URL (for example, on a
> CDN) for the JQuery script.
> IJavaScriptLibrarySettings.setJQueryReference() takes only a
> ResourceReference as a parameter, that must point to an application resource.
> One could create an IResource that redirects to the CDN, but that would
> require an additional request anyway.
> That support should exist also for wicket-ajax.js and wicket-event.js, but it
> is less of an issue, since they are tied to the Wicket version anyway (JQuery
> is hosted for free in a number of CDNs, so using them is very compelling).
> If there is some workaround, it should be documented in the wiki.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira