public interface ActionErrorProvider
Modifier and Type | Method and Description |
---|---|
void |
clearActionErrors()
clears the action error (if any) and all item errors
|
Map<String,ErrorInfo> |
getItemErrors()
returns a map of field errors
field errors are not persisted on the session and will be lost on redirects.
|
ErrorInfo |
getLastActionError(boolean clear)
returns the last Action Error of the current or a previous action
the error is left on the session unless the clear flag is set to true
In order to display the error to the user an application should use
this function instead of getActionError() and set clear to true.
|
String |
getLastActionMessage(boolean clear)
returns the last set Action Message
the message is left on the session unless the clear flag is set to true
|
String |
getLocalizedErrorMessage(ErrorInfo error)
return the localized message for an error
|
boolean |
hasActionError()
returns true if the current action has either an action or a field error
WARNING: this function returns false if a previous action had an error
|
boolean hasActionError()
void clearActionErrors()
ErrorInfo getLastActionError(boolean clear)
clear
- flag that determines whether to remove this error from the session or notMap<String,ErrorInfo> getItemErrors()
String getLocalizedErrorMessage(ErrorInfo error)
error
- the error infoString getLastActionMessage(boolean clear)
clear
- if true will clear the message from the sessionCopyright © 2008–2018 Apache Software Foundation. All rights reserved.