8 Replies Latest reply on Aug 9, 2008 7:52 PM by Pete Muir

    Constraint @Length acts differently on Seam vs. Hibernate

    Jeremy Barth Newbie

      I'm using a @Length(min="2",max="5") constraint on a String property.  The inputText tag is required="false".  Upon submit, no error is reported on the UI, but when it's persisted it throws a validation exception.


      My goal is to allow this field to be empty, but if they user fills it in, it should be between 2-5 characters.  Is there any way to do this with the standard annotations?