Example usage for org.springframework.validation Errors getGlobalErrorCount

List of usage examples for org.springframework.validation Errors getGlobalErrorCount

Introduction

In this page you can find the example usage for org.springframework.validation Errors getGlobalErrorCount.

Prototype

int getGlobalErrorCount();

Source Link

Document

Return the number of global errors.

Usage

From source file:jetx.ext.springmvc.SpringMvcFunctions.java

/**
 * ? /*from w  w  w .  ja v a 2 s. co  m*/
 */
public static int countGlobalErrors(JetPageContext ctx) {
    Errors errors = FunctionUtils.findErrors(ctx.getContext());
    return errors != null ? errors.getGlobalErrorCount() : 0;
}