[ 
https://issues.apache.org/jira/browse/WICKET-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238383#comment-13238383
 ] 

Martin Grigorov commented on WICKET-4471:
-----------------------------------------

There is org.apache.wicket.request.resource.ResourceReference#getDependencies().
This way a resource X can say "I depend on resource Y". 
This is how wicket-ajax-jquery.js depends on wicket-event.js which depends on 
jquery.js. I.e. doing 

headerResponse.render(JavaScriptHeaderItem.forReference(WicketAjaxResourceReference.INSTANCE));

will contribute wicket-ajax.js, wicket-event.js and jquery.js.

Does this help for your case ?
                
> 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
>            Priority: Minor
>
> 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

        

Reply via email to