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

ValidationError messages for NumberTextFields with minimum/maximum are always English

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.1.1, 6.3.0
    • 6.4.0, 1.5.10
    • wicket
    • None
    • Ubuntu 12.04

    Description

      Although my Form's Locale is, e.g., de_DE, the error message generated from AbstractRangeValidator#validate(IValidatable) is always English.
      My German custom message for resource key "RangeValidator.range" in the Page's resource bundle gets ignored too - the default custom message from the resource bundle is used instead.

      Reason might be that Component#getLocale() invoked from Localizer#getStringIgnoreSettings(String, Component, IModel, Locale, String, String) always returns NumberTextField#HTML5_LOCALE (fix for WICKET-3591).

      Pls. see attached quickstart.

      I'm a Wicket newbie, so could very well be that I'm missing something.

      Attachments

        1. myproject.zip
          12 kB
          Dirk Bachmann

        Activity

          People

            svenmeier Sven Meier
            anhalter42 Dirk Bachmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: