1 Reply Latest reply on Oct 28, 2010 9:15 AM by ender1

    validation

    ender1
      Is there a way to do conditional validation in seam, based on data from the context (bean property)
      for example:

      @NotNull(applyIf="#{someBean.active}")
          public String getSomeProperty() {
              return someProperty;
      }

      Validate someProperty not null constraint only if active property of someBean is true.
        • 1. Re: validation
          ender1

          Is there a way to use the validation groups in seam or some other way to use conditional validation with hibernate validator.


          @Min(value=18, groups = DriverChecks.class)
          public int age;




          Arek