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

Creating a field with max and min limitation generate invalid code into Jspx

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.5.RELEASE, 1.3.0.RELEASE, 1.3.1.RC1
    • Fix Version/s: 2.0.0.M1
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      Ubuntu 12.04, Java 1.6.0_45, Maven 3.0.5, Roo 1.3.0.RELEASE

      Description

      Run next script:

      project --topLevelPackage com.test
      persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT
      entity jpa --class es.kk.domain.MyEntity
      field number --fieldName myNumber --type java.lang.Integer --max 31 --min 1
      web mvc setup
      web mvc all --package ~.web
      

      Creating a field and limiting their maximum and minimum value:

      field number --fieldName myNumber --type java.math.BigDecimal --max 31 --min 1

      The entity Java class includes the limitation correctly with @Max and @Min annotations.

      However the jspx view takes these values as maximum and minimum size and also performs no validation with them into Tagx.

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              mmartinez Mario Martínez Sánchez - gvNIX - DISID
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: