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

        Gerhard Petracek created issue -
        Gerhard Petracek made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.4-SNAPSHOT [ 12314835 ]
        Fix Version/s 2.0.4-SNAPSHOT [ 12314836 ]
        Fix Version/s 1.1.4-SNAPSHOT [ 12314834 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Reporter Gerhard Petracek [ gpetracek ] Simon Zambrovski [ szambrovski@gmail.com ]
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        7m 5s 1 Gerhard Petracek 14/May/10 15:37
        Resolved Resolved Closed Closed
        196d 15h 24m 1 Gerhard Petracek 27/Nov/10 06:02

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development