public abstract class TableFormAction extends AbstractPageAction
Modifier and Type | Class and Description |
---|---|
static interface |
TableFormAction.ActionOnForm |
AbstractPageAction.TerminalResource
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected TableForm |
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 |
---|
TableFormAction() |
Modifier and Type | Method and Description |
---|---|
protected TableForm |
buildTableForm(TableFormBuilder formBuilder) |
Resolution |
configure() |
protected TableFormBuilder |
configureTableFormBuilder(TableFormBuilder formBuilder,
Mode mode,
int nRows) |
protected TableFormBuilder |
createTableFormBuilder() |
protected Resolution |
doWithForm(Mode mode,
TableFormAction.ActionOnForm closure) |
protected Resolution |
doWithForm(TableFormAction.ActionOnForm closure) |
Resolution |
execute() |
protected abstract ClassAccessor |
getClassAccessor()
Returns the ClassAccessor to access the data underlying the form
|
TableForm |
getForm() |
protected Mode |
getMode()
Returns what mode should the form be in.
|
protected abstract List<?> |
getObjects()
Returns the list of objects underlying the form, e.g. from a database query.
|
protected Resolution |
getShowFormResolution() |
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 |
setupTableForm(Mode mode) |
Resolution |
updateConfiguration() |
protected void |
validationFailed(TableForm 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 TableForm form
public Resolution configure()
public Resolution updateConfiguration()
public Resolution preparePage()
PageAction
protected void setupTableForm(Mode mode)
protected TableFormBuilder createTableFormBuilder()
protected TableFormBuilder configureTableFormBuilder(TableFormBuilder formBuilder, Mode mode, int nRows)
protected TableForm buildTableForm(TableFormBuilder formBuilder)
protected abstract ClassAccessor getClassAccessor()
protected abstract List<?> getObjects()
protected Mode getMode()
@DefaultHandler public Resolution execute()
protected Resolution doWithForm(TableFormAction.ActionOnForm closure)
protected Resolution doWithForm(Mode mode, TableFormAction.ActionOnForm closure)
protected Resolution getShowFormResolution()
protected void validationFailed(TableForm form, Object object)
public TableForm getForm()