Results 1 to 2 of 2

Thread: SimpleFormController

  1. #1
    Join Date
    Jul 2009
    Posts
    5

    Angry SimpleFormController

    When to use SimpleFormController in our Application?
    When to use AbstractController in our Application?..

    which method is overriden by SimpleFormController

  2. #2
    Join Date
    Feb 2009
    Posts
    10

    Default

    "The AbstractController is well suited for web resources that return dynamic information but don’t
    respond to input.
    The org.springframework.web.servlet.mvc.SimpleFormCont roller is a very powerful
    Controller responsible for handling the entire life cycle of HTML form interaction. This
    Controller manages and coordinates viewing the form, through validation, and finally to
    handling the submission. If your page or resource does not have to handle any form submits,
    you can move up the class hierarchy to use a simpler controller such as AbstractController.
    If you need to display a form and handle its submission, then this is the Controller for you." - Expert Spring MVC and Web Flow

    From the 2.5 API: http://static.springsource.org/sprin...ontroller.html

    protected Map referenceData(javax.portlet.PortletRequest request, Object command, Errors errors) throws Exception

    overrides referenceData in class AbstractFormController

    protected boolean suppressValidation(javax.portlet.PortletRequest request)
    overrides suppressValidation in class BaseCommandController

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •