Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3088

N-length empty strings not treated as *null* by validwhen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.8
    • 1.3.10, 1.4.0
    • Core
    • None

    Description

      Hello,

      As for validator required/requiredif , the continuous space string (ex. " ") is jugded blank field.

      But 'null' of validwhen shows only null or length 0 String .

      For ex,'this == null' is not hit the continuous space string (ex. " ").

      I think it should be same behavior because 'Validator Guide' described as follows:

      > requiredif - field dependant validator
      >Deprecated, use validwhen.

      Now, requiredif cannot be replaced validwhen.

      Attachments

        Activity

          People

            pbenedict Paul Benedict
            ikezawa Masakazu Ikezawa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: