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

Martin Grigorov commented on WICKET-3731:
-----------------------------------------

/wicket-core-1.5-SNAPSHOT/src/test/java/org/apache/wicket/markup/html/link/AutolinkPageExpectedResult_1.html
 expects generated URLs like:
<link 
href="../resource/org.apache.wicket.markup.html.link.AutolinkPage_1/test3.css?de_DE-myStyle"/>

How this resource should be actually styled/localized ?! The locale and the 
style are not part of the filename anymore and the only way to do something 
meaningful is to use a shared resource mounted at this location and return 
dynamic response based on the request parameters. But this is not the idea of 
<wicket:link>.

> PackageResourceReference.lookupStream(IResourceStreamLocator, Locale, String, 
> String) creates wrong PackageResourceReference.StreamInfo
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3731
>                 URL: https://issues.apache.org/jira/browse/WICKET-3731
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC4
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC5
>
>
> org.apache.wicket.request.resource.PackageResourceReference.lookupStream(IResourceStreamLocator,
>  Locale, String, String) asks the IResourceStreamLocator to find the 
> IReqourceStream with these parameters but this locator may return a 
> ResourceReference with a weaker Key, e.g. ignored Locale: the lookup is for 
> (Some.class, "some.css", Locale.US) but the result is (Some.class, 
> "some.css").
> StreamInfo should use the returned IResourceStream's settings (locale, style, 
> variation) instead of the searched ones.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to