Package org.springframework.binding.validation

Examples of org.springframework.binding.validation.Validator


   * the last call to validateAfterPropertyChange or <code>null</code> if
   * this is not known/available.
   */
  protected void validateAfterPropertyChanged(String formProperty) {
    if (isValidating()) {
      Validator validator = getValidator();
      if (validator != null) {
        DefaultValidationResults validationResults = new DefaultValidationResults(bindingErrorMessages.values());
        if (formProperty != null && validator instanceof RichValidator) {
          validationResults.addAllMessages(((RichValidator) validator)
              .validate(getFormObject(), formProperty));
        }
        else {
          validationResults.addAllMessages(validator.validate(getFormObject()));
        }
        validationResults.addAllMessages(additionalValidationResults);
        validationResultsModel.updateValidationResults(validationResults);
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.binding.validation.Validator

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.