Wicket
  1. Wicket
  2. WICKET-4884

ValidationError messages for NumberTextFields with minimum/maximum are always English

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.1, 6.3.0
    • Fix Version/s: 6.4.0, 1.5.10
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      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.

      1. myproject.zip
        12 kB
        Dirk Bachmann

        Activity

          People

          • Assignee:
            Sven Meier
            Reporter:
            Dirk Bachmann
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development