3 Replies Latest reply on Nov 22, 2007 10:47 AM by Sven Mueller

    accessing @length's 'max' value

    Sven Mueller Newbie

      hi,

      is there any chance to access the 'max' property of the hibernate length-validator via expression language or any other way?

      example:

      @Length(min = 5, max = 40)
      private String name;


      i want to use the given 'max' value from the annotation to restrict the input field via maxlength property:

      input type="text" maxlength="#{xxxxxxxx.max}"


      any ideas?