org.riotfamily.riot.form.ui
Class FormChooserController

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.riot.form.ui.BaseFormController
                  extended by org.riotfamily.riot.form.ui.FormController
                      extended by org.riotfamily.riot.form.ui.FormChooserController
All Implemented Interfaces:
MessageSourceAware, Controller

public class FormChooserController
extends FormController


Field Summary
 
Fields inherited from class org.riotfamily.riot.form.ui.BaseFormController
EDITOR_DEFINITION_ATTR
 
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
FormChooserController(EditorRepository editorRepository, FormRepository formRepository, PlatformTransactionManager transactionManager, ListService listService)
           
 
Method Summary
protected  Map<String,Object> createModel(Form form, ObjectEditorDefinition editorDefinition, HttpServletRequest request, HttpServletResponse response)
           
protected  String getFormId(HttpServletRequest request)
          Returns the id of the form to be used.
 
Methods inherited from class org.riotfamily.riot.form.ui.FormController
afterSave, afterUpdate, getUrl, reloadForm, showParentList
 
Methods inherited from class org.riotfamily.riot.form.ui.BaseFormController
createForm, getFormBackingObject, getObjectEditorDefinition, getObjectId, getParentEditor, getParentId, getSessionAttribute, handleFormSubmission, handleFormSubmissionInternal, saveOrUpdate, setViewName, showForm
 
Methods inherited from class org.riotfamily.forms.factory.RepositoryFormController
getFormIdParam, getFormRepository, setFormIdParam
 
Methods inherited from class org.riotfamily.forms.controller.AjaxFormController
handleFormRequest, initForm, 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

FormChooserController

public FormChooserController(EditorRepository editorRepository,
                             FormRepository formRepository,
                             PlatformTransactionManager transactionManager,
                             ListService listService)
Method Detail

getFormId

protected String getFormId(HttpServletRequest request)
Description copied from class: BaseFormController
Returns the id of the form to be used. This implementation returns the formId specified by the FormDefinition.

Overrides:
getFormId in class BaseFormController

createModel

protected Map<String,Object> createModel(Form form,
                                         ObjectEditorDefinition editorDefinition,
                                         HttpServletRequest request,
                                         HttpServletResponse response)
Overrides:
createModel in class FormController