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

StringResourceModel's Localizer cannot be overwritten

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.6, 1.4-RC3
    • wicket
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: