Package | Description |
---|---|
org.apache.empire.struts2.action | |
org.apache.empire.struts2.actionsupport | |
org.apache.empire.struts2.jsp.controls |
Modifier and Type | Method and Description |
---|---|
ErrorInfo |
WebAction.getLastActionError(boolean clear) |
ErrorInfo |
ActionErrorProvider.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.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ErrorInfo> |
WebAction.getItemErrors() |
Map<String,ErrorInfo> |
ActionErrorProvider.getItemErrors()
returns a map of field errors
field errors are not persisted on the session and will be lost on redirects.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WebAction.addFieldError(String name,
Column column,
ErrorInfo error) |
protected void |
WebAction.addItemError(String item,
ErrorType errorType,
String title,
ErrorInfo error) |
String |
WebAction.getLocalizedErrorMessage(ErrorInfo error) |
String |
ActionErrorProvider.getLocalizedErrorMessage(ErrorInfo error)
return the localized message for an error
|
protected void |
WebAction.setActionError(ErrorInfo error) |
Modifier and Type | Class and Description |
---|---|
class |
ActionError |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
ActionBase.addFieldError(String name,
Column column,
ErrorInfo error) |
protected void |
FormActionSupport.addFieldError(String name,
Column column,
ErrorInfo error,
Object value)
overridable: sets a field error message on the action
|
Constructor and Description |
---|
ActionError(ErrorInfo other) |
Modifier and Type | Class and Description |
---|---|
static class |
InputControl.FieldValueError
This class wraps a parsing or validation error.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.