Package jodd.vtor

Examples of jodd.vtor.ValidationConstraint


  /**
   * Prepares validation messages.
   * Key is either validation constraint class name or violation name.
   */
  public static String resolveValidationMessage(HttpServletRequest request, Violation violation) {
    ValidationConstraint vc = violation.getConstraint();
    String key = vc != null ? vc.getClass().getName() : violation.getName();
    String msg = LocalizationUtil.findMessage(request, key);
    if (msg != null) {
      return beanTemplateParser.parse(msg, violation);
    }
    return null;
View Full Code Here

TOP

Related Classes of jodd.vtor.ValidationConstraint

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.