Interface MessageHolder
-
- All Known Implementing Classes:
DefaultMessageHolder
public interface MessageHolder
An i18n- and character-escaping-agnostic collection of action and field errorMessage
s.Provides a similar interface to
ValidationAware
but withMessage
s instead of Strings.- Since:
- 4.2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addActionError(String messageKey)
void
addActionError(String messageKey, Object... args)
void
addActionInfo(String messageKey, Object... args)
void
addActionSuccess(String messageKey, Object... args)
void
addActionWarning(String messageKey, Object... args)
void
addFieldError(String field, String messageKey)
List<Message>
getActionErrors()
List<Message>
getActionInfos()
List<Message>
getActionSuccesses()
List<Message>
getActionWarnings()
Map<String,List<Message>>
getFieldErrors()
boolean
hasErrors()
-
-
-
Method Detail
-
hasErrors
boolean hasErrors()
-
addActionError
void addActionError(String messageKey)
-
-