You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Carl-Eric Menzel (JIRA)" <ji...@apache.org> on 2011/07/12 13:07:59 UTC

[jira] [Updated] (WICKET-3888) ResourceReference in 1.4 should optionally behave like PackageResourceReference in 1.5 and use the Session's locale and style

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

Carl-Eric Menzel updated WICKET-3888:
-------------------------------------

    Attachment: 0002-added-convenience-constructor.patch
                0001-allow-ResourceReference-to-dynamically-use-the-local.patch

A set of patches against wicket-1.4.x. Introduces flags useSessionLocale and useSessionStyle on ResourceReference. If true, the corresponding value from the session will be used by getSharedResourceKey(). This enables behavior similar to that of PackageResourceReference in 1.5.

> ResourceReference in 1.4 should optionally behave like PackageResourceReference in 1.5 and use the Session's locale and style
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3888
>                 URL: https://issues.apache.org/jira/browse/WICKET-3888
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: Carl-Eric Menzel
>         Attachments: 0001-allow-ResourceReference-to-dynamically-use-the-local.patch, 0002-added-convenience-constructor.patch
>
>
> I'm trying to have a ResourceReference that is not *entirely* static, but takes into account the current session's locale and style settings, even when they change. I.e., I want to have the page style change when the session style setting changes, without having to completely rebuild the page.
> PackageResourceReference in 1.5 already does this (in getUrlAttributes(), together with getCurrentStyle() et al), but as far as I can tell, ResourceReference in 1.4 does not.
> The default behavior of 1.4-ResourceReference should not be changed, but it would be nice to have a flag that allows to have the 1.5-like behavior if needed. I'll be attaching a patch to that effect.

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