Interface ValidationAware2

All Superinterfaces:
ValidationAware, ValidationAware
All Known Implementing Classes:
AbstractActionSupport, AbstractFindBaseRecordListActionSupport, AbstractFindIdListActionSupport, AbstractFindIndexListActionSupport, AbstractFindListActionSupport, AbstractFindListMultiModeActionSupport, AbstractFormDrivenActionSupport, AbstractJsonServerAction, AbstractSaveListActionSupport, AbstractViewActionSupport, AbstractViewListActionSupport

public interface ValidationAware2 extends ValidationAware
Interface that indicates Action can accept warning messages as well as standard messages, error messages and field errors.
  • Method Details

    • getActionWarnings

      Collection<String> getActionWarnings()
      Returns warning messages to display to the user. New messages should not be added to the result, use #addActionWarning instead.
    • setActionWarnings

      void setActionWarnings(Collection<String> errorMessages)
      Sets warning messages to display to the user.
    • addActionWarning

      void addActionWarning(String message)
      Adds warning message to display to the user.
    • hasActionWarnings

      boolean hasActionWarnings()
      Returns whether there are any warning messages.