Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3888

ResourceReference in 1.4 should optionally behave like PackageResourceReference in 1.5 and use the Session's locale and style

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.17
    • 1.4.19
    • wicket
    • None

    Description

      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.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            cmenzel Carl-Eric Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: