org.apache.empire.struts2.actionsupport
Class FormActionSupport

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.struts2.actionsupport.FormActionSupport
All Implemented Interfaces:
org.apache.empire.commons.ErrorInfo
Direct Known Subclasses:
RecordFormActionSupport

public abstract class FormActionSupport
extends org.apache.empire.commons.ErrorObject


Method Summary
 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, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEnableFieldErrors

public final boolean isEnableFieldErrors()
Returns true if field error handling is enabled or false otherwise.

Returns:
true if field error handling is enabled or false otherwise.

setEnableFieldErrors

public final void setEnableFieldErrors(boolean enableFieldErrors)
Enables or disables field error messages.

Parameters:
enableFieldErrors - true to enable field errors or false otherwise

getRecordPropertyName

public java.lang.String getRecordPropertyName()
Returns the property name of this form support object

Returns:
the property name

loadFormData

public abstract boolean loadFormData()
load the form data into an object.

Returns:
true if loading the form data was successful or false otherwise.