Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.4, 2.0.4, 1.1.4
    • Component/s: Bean Validation
    • Labels:
      None

      Description

      it should be possible to use custom types (+ converters for it) and constraints in such custom types should be validated if @Valid is used at the bound property.
      cascaded validation should be performed if there is no violated constraint of the property itself.

      example:

      public class CustomType
      {
      @NotNull
      private String property1;

      @Size(min = 3)
      private String property2;

      public CustomType(String property1, String property2)

      { this.property1 = property1; this.property2 = property2; }

      public String getProperty1()

      { return property1; }

      public String getProperty2()

      { return property2; }

      }

      public class MyBean
      {
      @NotNull
      @Valid
      private CustomType property;

      public CustomType getProperty()

      { return property; }

      public void setProperty(CustomType property)

      { this.property = property; }

      }

      //custom converter
      //...

      -> #

      {myBean.property}

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Simon Zambrovski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development