Interface ValidationAware2
- All Superinterfaces:
ValidationAware,ValidationAware
- All Known Implementing Classes:
AbstractActionSupport,AbstractFindBaseRecordListActionSupport,AbstractFindIdListActionSupport,AbstractFindIndexListActionSupport,AbstractFindListActionSupport,AbstractFindListMultiModeActionSupport,AbstractFormDrivenActionSupport,AbstractJsonServerAction,AbstractSaveListActionSupport,AbstractViewActionSupport,AbstractViewListActionSupport
Interface that indicates Action can accept warning messages as well as standard messages, error messages and field
errors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
ValidationAware.LegacyAdapter -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionWarning(String message) Adds warning message to display to the user.Returns warning messages to display to the user.booleanReturns whether there are any warning messages.voidsetActionWarnings(Collection<String> errorMessages) Sets warning messages to display to the user.Methods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getFieldErrors, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Method Details
-
getActionWarnings
Collection<String> getActionWarnings()Returns warning messages to display to the user. New messages should not be added to the result, use#addActionWarninginstead. -
setActionWarnings
Sets warning messages to display to the user. -
addActionWarning
Adds warning message to display to the user. -
hasActionWarnings
boolean hasActionWarnings()Returns whether there are any warning messages.
-