|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.apache.empire.struts2.actionsupport.FormActionSupport
public abstract class FormActionSupport
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject |
---|
ErrorObject.ObjectErrorInfo |
Field Summary | |
---|---|
protected ActionBase |
action
|
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
propertyName
|
Constructor Summary | |
---|---|
protected |
FormActionSupport(ActionBase action,
java.lang.String propertyName)
Creates a new FormActionSupport object. |
Method Summary | |
---|---|
protected void |
addFieldError(java.lang.String name,
Column column,
ErrorInfo error,
java.lang.Object value)
overridable: sets a field error message on the action |
protected java.lang.String |
getActionParam(java.lang.String name,
boolean persist)
Returns the value of a paramether supplied with the request or the session |
java.lang.String |
getRecordPropertyName()
Returns the property name of this form support object |
boolean |
isEnableFieldErrors()
Returns true if field error handling is enabled or false otherwise. |
abstract boolean |
loadFormData()
load the form data into an object. |
void |
setEnableFieldErrors(boolean enableFieldErrors)
Enables or disables field error messages. |
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, clearErrorInfo, error, error, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected ActionBase action
protected java.lang.String propertyName
Constructor Detail |
---|
protected FormActionSupport(ActionBase action, java.lang.String propertyName)
action
- the action this object belongs topropertyName
- the name of the propertiesMethod Detail |
---|
public final boolean isEnableFieldErrors()
public final void setEnableFieldErrors(boolean enableFieldErrors)
enableFieldErrors
- true to enable field errors or false otherwisepublic java.lang.String getRecordPropertyName()
protected java.lang.String getActionParam(java.lang.String name, boolean persist)
name
- the name of the parameterpersist
- true if the request value should be persisted on the session or false otherwise.
public abstract boolean loadFormData()
protected void addFieldError(java.lang.String name, Column column, ErrorInfo error, java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |