|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.empire.struts2.actionsupport.FormActionSupport
public abstract class FormActionSupport
| Field Summary | |
|---|---|
protected ActionBase |
action
|
protected static org.slf4j.Logger |
log
|
protected String |
propertyName
|
| Constructor Summary | |
|---|---|
protected |
FormActionSupport(ActionBase action,
String propertyName)
Creates a new FormActionSupport object. |
| Method Summary | |
|---|---|
protected void |
addFieldError(String name,
Column column,
ErrorInfo error,
Object value)
overridable: sets a field error message on the action |
protected String |
getActionParam(String name,
boolean persist)
Returns the value of a paramether supplied with the request or the session |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger log
protected ActionBase action
protected String propertyName
| Constructor Detail |
|---|
protected FormActionSupport(ActionBase action,
String propertyName)
action - the action this object belongs topropertyName - the name of the properties| Method Detail |
|---|
public final boolean isEnableFieldErrors()
public final void setEnableFieldErrors(boolean enableFieldErrors)
enableFieldErrors - true to enable field errors or false otherwisepublic String getRecordPropertyName()
protected String getActionParam(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(String name,
Column column,
ErrorInfo error,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||