org.riotfamily.riot.list.command.dialog.ui
Class DialogFormController

java.lang.Object
  extended by org.riotfamily.forms.controller.AbstractFormController
      extended by org.riotfamily.forms.controller.AjaxFormController
          extended by org.riotfamily.riot.list.command.dialog.ui.DialogFormController
All Implemented Interfaces:
MessageSourceAware, Controller

public class DialogFormController
extends AjaxFormController

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

Field Summary
 
Fields inherited from class org.riotfamily.forms.controller.AbstractFormController
BUTTON_CONTAINER_ID, FORM_SUBMISSION_HANDLER, log
 
Constructor Summary
DialogFormController(ListRepository listRepository, PlatformTransactionManager transactionManager)
           
 
Method Summary
protected  Form createForm(HttpServletRequest request)
          Delegates the form creation to the DialogCommand.
protected  DialogCommand getCommand(HttpServletRequest request)
           
protected  String getCommandId(HttpServletRequest request)
           
protected  String getSessionAttribute(HttpServletRequest request)
          Returns the name of the attribute under which the Form is stored in the HTTP session.
protected  String getTitle(Form form, HttpServletRequest request)
           
 ModelAndView handleFormSubmission(Form form, HttpServletRequest request, HttpServletResponse response)
           
protected  void populateForm(Form form, HttpServletRequest request)
          Overwrites the super implementation to do nothing since the form created by the command is already populated by contract.
protected  ModelAndView showForm(Form form, HttpServletRequest request, HttpServletResponse response)
           
 
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, getFormBackingObject, getWriter, handleContentRequest, handleRequest, initController, isContentRequest, isExclusiveRequest, processForm, removeFormFromSession, setFormContextFactory, setProcessNewForms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogFormController

public DialogFormController(ListRepository listRepository,
                            PlatformTransactionManager transactionManager)
Method Detail

getCommandId

protected String getCommandId(HttpServletRequest request)

getCommand

protected DialogCommand getCommand(HttpServletRequest request)

createForm

protected Form createForm(HttpServletRequest request)
Delegates the form creation to the DialogCommand.

Specified by:
createForm in class AbstractFormController

populateForm

protected void populateForm(Form form,
                            HttpServletRequest request)
Overwrites the super implementation to do nothing since the form created by the command is already populated by contract.

Overrides:
populateForm in class AbstractFormController

getSessionAttribute

protected String getSessionAttribute(HttpServletRequest request)
Description copied from class: AbstractFormController
Returns the name of the attribute under which the Form is stored in the HTTP session.

Overrides:
getSessionAttribute in class AbstractFormController

getTitle

protected String getTitle(Form form,
                          HttpServletRequest request)

showForm

protected ModelAndView showForm(Form form,
                                HttpServletRequest request,
                                HttpServletResponse response)
Overrides:
showForm in class AbstractFormController

handleFormSubmission

public ModelAndView handleFormSubmission(Form form,
                                         HttpServletRequest request,
                                         HttpServletResponse response)
                                  throws Exception
Specified by:
handleFormSubmission in class AbstractFormController
Throws:
Exception