|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionErrorProvider
Method Summary | |
---|---|
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 |
Method Detail |
---|
boolean hasActionError()
void clearActionErrors()
ErrorInfo getLastActionError(boolean clear)
clear
- flag that determines whether to remove this error from the session or not
Map<String,ErrorInfo> getItemErrors()
String getLocalizedErrorMessage(ErrorInfo error)
error
- the error info
String getLastActionMessage(boolean clear)
clear
- if true will clear the message from the session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |