Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2473

Fields marked with --sizeMin don't always have "required" in prompt

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Complete
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      To replicate:

      1. Run clinic.roo
      2. Go to the "Create new Owner" page
      3. Click into the "Email" field; note that the prompt says "Enter Email"
      4. Submit the form; the email field displays the error "size must be between 6 and 30"

      If the form won't submit without an email addresses entered, then the prompt for that field should say "Enter Email (required)".

      The workaround is to add a JPA @NotNull annotation to the relevant entity field; the MVC addon will then update the relevant JSPX files by adding required="true" to that field. However @NotNull is a persistence-related annotation, not a validation/UI annotation. The presence of the JSR-303 @SizeMin annotation should be enough for the MVC addon to mark the field as required.

        Attachments

          Activity

            People

            • Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              aswan Andrew Swan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: