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

StringValidator.exactLength has wrong variable in ErrorMessage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta3, 6.0.0
    • 6.0.0
    • wicket
    • None

    Description

      In error message for StringValidator.exactLength is variable ${exact} , but in StringValidator.decorate is added variable length to map and not exact.

      Exception when is error message interpolate for show in feedback.

      Caused by: java.lang.IllegalArgumentException: Value of variable [[exact]] could not be resolved while interpolating [['${label}' is not exactly ${exact} characters long.]]

      property from application.
      StringValidator.exact='${label}' is not exactly ${exact} characters long.

      When I added same property in my own properties and change exact to length, it works.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            derethas Jakub Rinkes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: