public abstract class FormActionSupport extends Object
Modifier and Type | Field and Description |
---|---|
protected ActionBase |
action |
protected static org.slf4j.Logger |
log |
protected String |
propertyName |
Modifier | Constructor and Description |
---|---|
protected |
FormActionSupport(ActionBase action,
String propertyName)
Creates a new FormActionSupport object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected static org.slf4j.Logger log
protected ActionBase action
protected String propertyName
protected FormActionSupport(ActionBase action, String propertyName)
action
- the action this object belongs topropertyName
- the name of the propertiespublic 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()
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.