[ 
https://issues.apache.org/jira/browse/WICKET-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johan Compagner closed WICKET-1446.
-----------------------------------

    Resolution: Fixed
      Assignee: Johan Compagner

i fixed this issue but created a new one WICKET-1447 because i think not all 
problems are fixed
and we need to make the api of SharedResources a bet better. because a get() 
and an add() with both a String argument that are not the same thing is 
confusing.

> Lazy registration in SharedResourceRequestTarget fails
> ------------------------------------------------------
>
>                 Key: WICKET-1446
>                 URL: https://issues.apache.org/jira/browse/WICKET-1446
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Tony Vegas
>            Assignee: Johan Compagner
>             Fix For: 1.3.3
>
>
> The lazy registration of shared resources which are not of scope 
> org.apache.wicket.Application fails.
> It fails because registers SharedResourceRequestTarget the resource with 
> sharedResources.add(resourceKey, packageResource);
> but should use
> sharedResources.add(scope, path,null,null, packageResource);
> The problem is that add(final String name, final Resource resource) expects a 
> name for the resource and not the complete resource key.
> As consequence the resource is registered again and again with scope 
> org.apache.wicket.Application.

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

Reply via email to