5 Replies Latest reply on Jun 27, 2007 7:21 AM by Petterson Paula

    @Length throws InvalidStateException when String is null or

    Petterson Paula Newbie

      Hi,

      If I have a property annotated with @Length and the field is not required in the form. A InvalidStateException is thrown complaining that the property's lenght must be between min and max.

      Anyone knows if there is a way to use @Length in nullable fields?

      Thanks in advance,
      Petterson