You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/08/26 19:31:30 UTC

[jira] Commented: (WICKET-771) Provide ResourceReference with ID attribute for filtering multiple includes

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

Matej Knopp commented on WICKET-771:
------------------------------------

Well, I'm not sure how to fix this in a correct way. 
However, there is a workaround available. It is possible to filter out any javascript reference

You need to register global header contribution (Application.addRenderHeadListener) and in the renderHead method call
response.markRendered(token) where
the token is Arrays.asList(new Object[] { "javascript", url });
(you get the url from RequestCycle.get().urlFor(resourceReference)).

Not the nicest approach, but it is a workaround/


> Provide ResourceReference with ID attribute for filtering multiple includes
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-771
>                 URL: https://issues.apache.org/jira/browse/WICKET-771
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.0-beta1, 1.3.0-beta2
>            Reporter: Jim McLaughlin
>             Fix For: 1.3.0-beta4
>
>
> Provide ResourceReference with an ID attribute that can be used to reduce multiple inclusions. This will allow different projects to include the same resources without worrying about double includes (if they agree to use the same id) even if the resources have different urls.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.