Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2164

Bean validation doesn't work when just min, not max, defined in @Size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 5.4
    • None
    • tapestry-beanvalidator
    • None

    Description

      If you use @Size defining without defining the max attribute, the max validation isn't added, but the data-range-max isn't added and the call to rangeValue(element, "data-range-max", Number.MAX_VALUE) ends up returning NaN instead of Number.MAX_VALUE and the value is always considered invalid.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thiagohp Thiago Henrique De Paula Figueiredo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: