PDA

View Full Version : Best practice for verification page


leetgeezer
May 23rd, 2007, 12:59 PM
I need a pattern for the following situation:

- On the first page, user enters some data
- The form is validated
- On the second page the user is presented with a verification page. All the data he enters are repeated, and the user can confirm his choice or go back.
- If confirmed and all went well, the user is presented with success page.

Is it better to implement it using AbstractWizardFormController with the veriufication page as the second page, or maybe use SimpleFormController? In the latter case how to how to ensure that correct (verification / success) view is displayed?

Marten Deinum
May 23rd, 2007, 05:08 PM
The easiest would be a AWFC this woould handle the confirm/back issue for you. If you would implement it with a SFC you would have to create/manage your own.

leetgeezer
May 31st, 2007, 12:58 PM
Thanks for answering, I think I'll go w/AWFC.