wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Meier <s...@meiers.net>
Subject Re: Package resource location does not consider current session style and locale
Date Fri, 17 Apr 2015 06:49:26 GMT
Please provide a quickstart and attach it to a new Jira issue.

Regards
Sven


On 16.04.2015 23:28, Sergiy Barlabanov wrote:
> We are using Wicket 6.15 (but the code seems unchanged in the latest Wicket 6
> releases).
> We set style to Wicket session and expect Wicket to consider the style when
> loading CSS package resources. But this does not work.
> Seems to be some kind of inconsistency in PackageResource class.
> It uses PackageResource#getCacheableResourceStream() method to calculate the
> cache key of the resource (and the timestamp when generating the resource
> url). This method considers Session.get().getStyle() and in this case the
> correct resource file is located (sample_<style>.css).
> But PackageResource#newResourceResponse uses
> PackageResource#getResourceStream(), which does not take
> Session.get().getStyle() into account and as a result locates the wrong
> resource file (sample.css instead of sample_<style>.css), which is returned
> to the browser. This seems to be a bug, isn't it? The same applies to the
> locale.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Package-resource-location-does-not-consider-current-session-style-and-locale-tp4670338.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message