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

StringResourceModel's Localizer cannot be overwritten

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.6, 1.4-RC3
    • Component/s: wicket
    • Labels:
      None

      Description

      According to the Javadoc setLocalizer() should be used to overwrite a StringResourceModel's Localizer.

      However, the localizer property is overwritten later by the load() method.

      Overriding getLocalizer() does not work either, since getString() uses the localizer property directly.

      I think the load method should check whether the property is set already before applying the application's localizer.

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              pparson Peter Parson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: