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

Improve Locale fallback in BundleStringResourceLoader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.3, 1.4-M2
    • 1.3.4, 1.4-M3
    • wicket
    • None

    Description

      While https://issues.apache.org/jira/browse/WICKET-1415 fixed the NPE in BundleStringResourceLoader,
      Locale.getDefault() is a bad choice to get the locale from, as it is determined by the default locale of the jvm
      running the servlet container. I think it's a big coincidence if the jvm default locale is actually the one the user wants
      to see in the webapp - Session#getLocale() would probably be a better default.

      Attached is a patch against current trunk (1.4)

      Attachments

        1. wicket-1711.patch
          0.5 kB
          Jonas

        Activity

          People

            ivaynberg Igor Vaynberg
            jonas Jonas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: