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

Required Field validation behavior changed between 4.0 and 4.1.1

    XMLWordPrintableJSON

Details

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

    Description

      In 4.0, a Select list with a selection with an empty value failed the required field validation. In 4.1.1, if any item is selected it is valid, even if that item has no value.

      The old behavior worked with Java validation, the new one does not - a selection with a null/empty value submits null, which fails server-side validation.

      The problem is in dojo.validate.check() line 100 in the current snapshot.

      Since this is in Dojo, that behavior may be the desired default, but Tapestry needs a modified behavior with an additional condition - if the element is a select-one or select-multiple, if it has a selection that selection (or at least one of the selections) must not have an empty value.

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            gwoolsey Greg Woolsey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: