Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1650

add support for "empty field validation" and BeanValidation API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.0-alpha
    • None
    • None

    Description

      JSF 2.0 has support for run validation on empty fields (which integrates with BeanValidation)

      <quoteFromSpec>
      javax.faces.VALIDATE_EMPTY_FIELDS – If this param is set, and calling
      toLowerCase().equals("true") on a String representation of its value returns
      true, all submitted fields will be validated. This is necessary to allow the model
      validator to decide whether null or empty values are allowable in the current
      application. If the value is false, null or empty values will not be passed to the
      validators. If the value is the string "auto", the runtime must check if JSR-303 Beans
      Validation is present in the current environment. If so, the runtime must proceed as if the
      value "true" had been specified. If JSR-303 Beans Validation is not present in the
      current environment, the runtime most proceed as if the value "false" had been
      specified. If the param is not set, the system must behave as if the param was set with the
      value "auto".
      </quoteFromSpec>

      Attachments

        1. TRINIDAD-1650.patch
          7 kB
          Matthias Wessendorf
        2. Trinidad-1650-6.2branch.patch
          4 kB
          Jing Wu
        3. Trinidad-1650-7.0branch.patch
          4 kB
          Jing Wu

        Activity

          People

            matzew Matthias Wessendorf
            matzew Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: