Results 1 to 2 of 2

Thread: SimpleFormController: SuccessView = FormView

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Default SimpleFormController: SuccessView = FormView

    Hi All,

    I'm trying to create my first CRUD using SimpleFormController.

    so far I've created a page with a form binded to my command and a SimpleFormController. My successView is the same as the formview so after the form is submited, if there are not validation errors, it displays some calculation on the same page and displays the same form again.

    The form keeps the falues....Is there any way to delete the form fields automatically after pressing "submit" ? I know that I can delete field by field in the doSubmitAction... but just wandering how to delete all the fields automatically...

    thanks !

  2. #2
    Join Date
    Sep 2009
    Posts
    1

    Default

    Hi Richy,

    I'm something of a newbie myself, but I'd probably create a new instance of the command object and return that as part of the ModelAndView.

Tags for this Thread

Posting Permissions

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