Example usage for org.springframework.validation MessageCodesResolver interface-usage

List of usage examples for org.springframework.validation MessageCodesResolver interface-usage

Introduction

In this page you can find the example usage for org.springframework.validation MessageCodesResolver interface-usage.

Usage

From source file eu.delving.core.util.SimpleMessageCodesResolver.java

/**
 * A message source resolvable which avoids inventing all kinds of different keys to search for
 * when an error message appears
 *
 * @author Gerald de Jong <geralddejong@gmail.com>
 */

From source file org.springmodules.validation.bean.converter.ModelAwareMessageCodesResolver.java

/**
 * A {@link MessageCodesResolver} implementation that can be used along with the {@link ModelAwareErrorCodeConverter}.
 * This resolver extracts the basic error code from the model-aware one and uses an internal message code converter to
 * resolve all error codes for the this basic error code. The model-aware one is then added to the top of the error codes
 * list. For example, if the internal messagee code resolver is {@link DefaultMessageCodesResolver}, the model-aware
 * error code is <code>Person.firstName[not.blank]</code>, and the basic error code is <code>not.blank</code>,