Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-7991

Data Object "Add new Annotation" - Some annotations does not affect/validate forms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.14.0.Final
    • None
    • NEW
    • NEW
    • Hide

      1. Create an Data Object "Person"
      2. Add a Field "emailAddress" and give it type "String" and a label "Email Address"
      3. Click on Advanced and "Add new Annotation". Add "org.hibernate.validator.constraints.Email" or "javax.validation.constraints.Email" and Finish
      4. Generate the forms and test...

      Show
      1. Create an Data Object "Person" 2. Add a Field "emailAddress" and give it type "String" and a label "Email Address" 3. Click on Advanced and "Add new Annotation". Add "org.hibernate.validator.constraints.Email" or "javax.validation.constraints.Email" and Finish 4. Generate the forms and test...

    Description

      When adding javax.validation.constraints or org.hibernate.validator.constraints to Data Objects in jBPM 7.14 then:

      The "Add new Annotation" window accepts all known (bean-validation 2.0) annotations like @NotNull, @Email, @Min, @Pattern, @Digits etc

      BUT only some of them interact with the generated forms in the workbench.

      For example:
      @javax.validation.constraints.Email and @Pattern don't apply any "form input validation" on generated forms.
      @org.hibernate.validator.constraints.Email constantly show an error message on form "not a well-formed email address" no matter what we fill the input text field with.

      See uploaded Excel files for more details.

      Attachments

        1. EMAIL-ERROR_MESSAGE_CONSTANTLY.png
          EMAIL-ERROR_MESSAGE_CONSTANTLY.png
          42 kB
        2. OK.png
          OK.png
          48 kB
        3. testresult.xlsx
          9 kB

        Activity

          People

            rh-ee-pefernan Pere Fernandez Perez
            henrik.eriksson Henrik Eriksson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: