org.riotfamily.components.editor
Class ContentFormController
java.lang.Object
org.riotfamily.forms.controller.AbstractFormController
org.riotfamily.forms.controller.AjaxFormController
org.riotfamily.forms.factory.RepositoryFormController
org.riotfamily.components.editor.AbstractFrontOfficeFormController
org.riotfamily.components.editor.ContentFormController
- All Implemented Interfaces:
- MessageSourceAware, Controller
- Direct Known Subclasses:
- PagePropertiesFormController
public class ContentFormController
- extends AbstractFrontOfficeFormController
Controller that displays a form to edit the properties of a ComponentVersion.
- Since:
- 6.5
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class org.riotfamily.forms.controller.AbstractFormController |
createAndInitForm, createModelAndView, getForm, getWriter, handleContentRequest, handleRequest, initController, isContentRequest, isExclusiveRequest, populateForm, processForm, removeFormFromSession, setFormContextFactory, setProcessNewForms |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentFormController
public ContentFormController(FormRepository formRepository,
PlatformTransactionManager transactionManager,
ComponentDao componentDao,
CacheService cacheService)
initForm
protected void initForm(Form form,
HttpServletRequest request)
- Description copied from class:
AbstractFormController
- Subclasses may overwrite this method to initialize forms after they have
been populated. The default implementation does nothing.
- Overrides:
initForm
in class AbstractFrontOfficeFormController
getFormBackingObject
protected Object getFormBackingObject(HttpServletRequest request)
- Description copied from class:
AbstractFormController
- Returns the object backing the form. Subclasses may overwrite this method
to retrieve a persistent object. The default implementation returns
null
.
- Overrides:
getFormBackingObject
in class AbstractFormController
getContainer
protected ContentContainer getContainer(HttpServletRequest request)
reattach
protected void reattach(Object object,
HttpServletRequest request)
- Specified by:
reattach
in class AbstractFrontOfficeFormController
update
protected void update(Object object,
HttpServletRequest request)
- Specified by:
update
in class AbstractFrontOfficeFormController