-
Sep 22nd, 2009, 06:08 AM
#1
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 !
-
Sep 28th, 2009, 06:00 AM
#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.
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
-
Forum Rules