org.riotfamily.pages.riot.form
Class PagePropertiesFormController

java.lang.Object
  extended by org.riotfamily.forms.controller.AbstractFormController
      extended by org.riotfamily.forms.controller.AjaxFormController
          extended by org.riotfamily.forms.factory.RepositoryFormController
              extended by org.riotfamily.components.editor.AbstractFrontOfficeFormController
                  extended by org.riotfamily.components.editor.ContentFormController
                      extended by org.riotfamily.pages.riot.form.PagePropertiesFormController
All Implemented Interfaces:
MessageSourceAware, Controller

public class PagePropertiesFormController
extends ContentFormController

The pages module replaces the ContentFormController provided by the components module by this implementation. It checks if the ContentContainer being edited is a PageProperties instance and wraps the form elements with PagePropertyElements.

Since:
7.0
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from class org.riotfamily.forms.factory.RepositoryFormController
DEFAULT_FORM_ID_PARAM
 
Fields inherited from class org.riotfamily.forms.controller.AbstractFormController
BUTTON_CONTAINER_ID, FORM_SUBMISSION_HANDLER, log
 
Constructor Summary
PagePropertiesFormController(FormRepository formRepository, PlatformTransactionManager transactionManager, ComponentDao componentDao, CacheService cacheService)
           
 
Method Summary
protected  Form createForm(HttpServletRequest request)
          Subclasses must implement this method and return a fresh Form instance.
protected  Form createPagePropertiesForm(HttpServletRequest request, PageProperties props)
           
 
Methods inherited from class org.riotfamily.components.editor.ContentFormController
getContainer, getFormBackingObject, initForm, reattach, update
 
Methods inherited from class org.riotfamily.components.editor.AbstractFrontOfficeFormController
getFormId, getSessionAttribute, handleFormSubmission, handleFormSubmissionInternal, setSuccessViewName, setViewName, showForm
 
Methods inherited from class org.riotfamily.forms.factory.RepositoryFormController
getFormIdParam, getFormRepository, setFormIdParam
 
Methods inherited from class org.riotfamily.forms.controller.AjaxFormController
handleFormRequest, isEventRequest, isInitialRequest, processAjaxRequest, processEventRequest, renderForm, setMessageSource
 
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
 

Constructor Detail

PagePropertiesFormController

public PagePropertiesFormController(FormRepository formRepository,
                                    PlatformTransactionManager transactionManager,
                                    ComponentDao componentDao,
                                    CacheService cacheService)
Method Detail

createForm

protected Form createForm(HttpServletRequest request)
Description copied from class: AbstractFormController
Subclasses must implement this method and return a fresh Form instance.

Overrides:
createForm in class RepositoryFormController

createPagePropertiesForm

protected Form createPagePropertiesForm(HttpServletRequest request,
                                        PageProperties props)