Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1045

Pattern vlidator message is wrong.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.1
    • None
    • None
    • tapestry 4.1.1

    Description

      in tapestry.form.validator.Pattern

      private String buildMessage(ValidationMessages messages, IFormComponent field)
      {
      return messages.formatValidationMessage(
      getMessage(),
      ValidationStrings.REGEX_MISMATCH,
      new Object[]

      { _pattern, field.getDisplayName() }

      );
      }

      In ValidationStrings.properties

      regex-mismatch=

      {0}

      is invalid.

      so the message is ${_pattern} is valid.I think the message should be ${field.getDisplayName()} is invalid.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bitiboy Jun Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: