Interface MessageHolder

All Known Implementing Classes:
DefaultMessageHolder

public interface MessageHolder
An i18n- and character-escaping-agnostic collection of action and field error Messages.

Provides a similar interface to ValidationAware but with Messages instead of Strings.

Since:
4.2.3
  • Method Details

    • hasErrors

      boolean hasErrors()
    • addFieldError

      void addFieldError(String field, String messageKey)
    • addActionError

      void addActionError(String messageKey)
    • addActionError

      void addActionError(String messageKey, Object... args)
    • addActionWarning

      void addActionWarning(String messageKey, Object... args)
    • addActionInfo

      void addActionInfo(String messageKey, Object... args)
    • addActionSuccess

      void addActionSuccess(String messageKey, Object... args)
    • getActionErrors

      List<Message> getActionErrors()
    • getActionWarnings

      List<Message> getActionWarnings()
    • getActionInfos

      List<Message> getActionInfos()
    • getActionSuccesses

      List<Message> getActionSuccesses()
    • getFieldErrors

      Map<String,List<Message>> getFieldErrors()