Announcement Announcement Module
No announcement yet.
SimpleFormController: SuccessView = FormView Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.