Sep 22nd, 2009, 06:08 AM
SimpleFormController: SuccessView = FormView
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...
Sep 28th, 2009, 06:00 AM
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