Package play.data.validation.Constraints

Examples of play.data.validation.Constraints.MaxLength


      required = true;
    }
   
    if (CharSequence.class.isAssignableFrom(getField().getType())) {
      widget = new TextWidget(this);
      MaxLength maxLength = annotation(MaxLength.class);
      if (maxLength != null && maxLength.value() > 128)
        widget = new TextAreaWidget(this);

      Column column = annotation(Column.class);
      if (column != null && column.length() > 128)
        widget = new TextAreaWidget(this);
View Full Code Here

TOP

Related Classes of play.data.validation.Constraints.MaxLength

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.