The resulting message codes correspond to the codes of a MessageSourceResolvable (as implemented by ObjectError and FieldError).
DataBinder#setMessageCodesResolver, ObjectError, FieldError, org.springframework.context.MessageSourceResolvable#getCodes()
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: the message codes to usethe error code used for rejecting the object errorCode, String the name of the object objectName)Build message codes for the given error code and object name. |
| public String[] | Returns: the message codes to usethe error code used for rejecting the value errorCode, String the name of the object objectName, String the field name field, Class<?> the field type (may be fieldType)null if not determinable)Build message codes for the given error code and field specification. |
| resolveMessageCodes | back to summary |
|---|---|
| public String[] resolveMessageCodes(String errorCode, String objectName) Build message codes for the given error code and object name. Used for building the codes list of an ObjectError. | |
| resolveMessageCodes | back to summary |
|---|---|
| public String[] resolveMessageCodes(String errorCode, String objectName, String field, Class<?> fieldType) Build message codes for the given error code and field specification. Used for building the codes list of an FieldError. | |