public abstract class FormAction extends AbstractPageAction
Modifier and Type | Class and Description |
---|---|
static interface |
FormAction.ActionOnForm |
AbstractPageAction.TerminalResource
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected Form |
form |
static org.slf4j.Logger |
logger |
static String |
POST_FORM_PERMISSION |
CONF_FORM_PREFIX, DEFAULT_LAYOUT_CONTAINER, PAGE_CONFIGURATION_FIELDS, PAGE_CONFIGURATION_FIELDS_NO_DETAIL, pageConfigurationForm, pageInstance, pageTemplate, PORTOFINO_PAGEACTION_EXCEPTION, portofinoConfiguration, returnUrl, script, serverInfo, templates
context
Constructor and Description |
---|
FormAction() |
Modifier and Type | Method and Description |
---|---|
protected Form |
buildForm(FormBuilder formBuilder) |
Resolution |
configure() |
protected FormBuilder |
configureFormBuilder(FormBuilder formBuilder,
Mode mode) |
protected FormBuilder |
createFormBuilder() |
protected Resolution |
doWithForm(FormAction.ActionOnForm closure) |
protected Resolution |
doWithForm(Mode mode,
FormAction.ActionOnForm closure) |
Resolution |
execute() |
protected abstract ClassAccessor |
getClassAccessor()
Returns the ClassAccessor to access the data underlying the form
|
Form |
getForm() |
protected Mode |
getMode()
Returns what mode should the form be in.
|
protected abstract Object |
getObject()
Returns the object underlying the form, e.g. from a database query.
|
protected Resolution |
getShowFormResolution() |
boolean |
isFormWithRichTextFields() |
Resolution |
preparePage()
A lifecycle method invoked during the dispatch phase, where a http request is translated to a dispatch
(a path in the page tree) ultimately leading to an action invocation.
|
protected void |
setupForm(Mode mode) |
Resolution |
updateConfiguration() |
protected void |
validationFailed(Form form,
Object object)
Invoked when form validation fails.
|
acceptsPathParameter, cancel, consumePathFragment, createTemplateSelectionProvider, forwardTo, forwardToPageActionError, forwardToPageActionNotConfigured, getActionAPIPath, getActionPath, getButtons, getConfiguration, getDefaultReturnUrl, getEmbeddedPageActions, getOgnlContext, getPage, getPageConfigurationForm, getPageDescription, getPageInstance, getPages, getPageTemplate, getParent, getPortofinoConfiguration, getResourcePath, getReturnUrl, getScript, getSubResource, initEmbeddedPageActions, isMultipartRequest, prepareConfigurationForms, prepareScript, readPageConfigurationFromRequest, saveConfiguration, setPageConfigurationForm, setPageInstance, setPageTemplate, setReturnUrl, setScript, updatePageConfiguration, updateScript, updateTemplate, validatePageConfiguration
getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
setContext
public static final String copyright
public static final org.slf4j.Logger logger
public static final String POST_FORM_PERMISSION
protected Form form
public Resolution configure()
public Resolution updateConfiguration()
public Resolution preparePage()
PageAction
protected void setupForm(Mode mode)
protected FormBuilder createFormBuilder()
protected FormBuilder configureFormBuilder(FormBuilder formBuilder, Mode mode)
protected Form buildForm(FormBuilder formBuilder)
protected abstract ClassAccessor getClassAccessor()
protected abstract Object getObject()
protected Mode getMode()
@DefaultHandler public Resolution execute()
protected Resolution doWithForm(FormAction.ActionOnForm closure)
protected Resolution doWithForm(Mode mode, FormAction.ActionOnForm closure)
protected Resolution getShowFormResolution()
protected void validationFailed(Form form, Object object)
public Form getForm()
public boolean isFormWithRichTextFields()