public interface BindingErrorProcessor
Title: BindingErrorProcessor.java
Description:
bboss workgroup
Copyright (c) 2007
| 限定符和类型 | 方法和说明 |
|---|---|
void |
processMissingFieldError(java.lang.String missingField,
BindingResult bindingResult)
Apply the missing field error to the given BindException.
|
void |
processPropertyAccessException(org.frameworkset.util.beans.PropertyAccessException ex,
BindingResult bindingResult)
Translate the given
PropertyAccessException to an appropriate
error registered on the given Errors instance. |
void processMissingFieldError(java.lang.String missingField,
BindingResult bindingResult)
Usually, a field error is created for a missing required field.
missingField - the field that was missing during bindingbindingResult - the errors object to add the error(s) to.
You can add more than just one error or maybe even ignore it.
The BindingResult object features convenience utils such as
a resolveMessageCodes method to resolve an error code.BeanPropertyBindingResult#addError,
BeanPropertyBindingResult#resolveMessageCodesvoid processPropertyAccessException(org.frameworkset.util.beans.PropertyAccessException ex,
BindingResult bindingResult)
PropertyAccessException to an appropriate
error registered on the given Errors instance.
Note that two error types are available: FieldError and
ObjectError. Usually, field errors are created, but in certain
situations one might want to create a global ObjectError instead.
ex - the PropertyAccessException to translatebindingResult - the errors object to add the error(s) to.
You can add more than just one error or maybe even ignore it.
The BindingResult object features convenience utils such as
a resolveMessageCodes method to resolve an error code.Errors,
FieldError,
ObjectError,
MessageCodesResolver,
BeanPropertyBindingResult#addError,
BeanPropertyBindingResult#resolveMessageCodes