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 Detail

      • 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)
      • getActionSuccesses

        List<Message> getActionSuccesses()