[
https://issues.apache.org/jira/browse/WICKET-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239493#comment-13239493
]
Emond Papegaaij commented on WICKET-4471:
-----------------------------------------
At the moment, there are 2 implementations of IResourceBundle:
ConcatResourceBundleReference, which concats packaged resources into one
resource reference. For this bundle, there is no need to create a file
manually, but it only supports local (packaged) files and the resulting bundle
is served by wicket. I think this is the most likely usecase.
The second, ResouceBundleReference, allows you to use an arbitrary resource as
a bundle. This, for example, allows you to manually create a bundle file,
removing code you don't need, and serve that as a bundle for 1 or more
resources. With ExternalUrlResRef, it is even possible to place this file on a
CDN and serve your files from there.
Wicket will not concat files from other servers. It can only concat packaged
resources. If you want to bundle external resources, you will have to create
the bundle yourself. To make this more clear, I'll see if I can add this use
case to the resource example.
> Generic registry of javascript/css resource references
> ------------------------------------------------------
>
> Key: WICKET-4471
> URL: https://issues.apache.org/jira/browse/WICKET-4471
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.0.0-beta1
> Reporter: Ronald Tetsuo Miura
> Assignee: Emond Papegaaij
> Priority: Minor
> Attachments:
> 0001-WICKET-4471-unwrap-ResourceBundleReference-to-render.patch
>
>
> It would be nice if JavaScriptLibrarySettings had a generic mechanism to
> register javascript/css resource references (maybe using something like
> MetaDataKeys).
> This way, extension/third-party components (ModalWindow, DateTimeField, etc.)
> could register their resources, or just lookup for substitute resource
> references for their own scripts/stylesheets.
> This would allow some optimizations, such as minification/compression and
> joining many files into one, and hosting static files in CDNs.
--
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