I have implemented a 4 page account creation wizard using the AbstractWizardFormController.
Form submission and validation appears to work as intended going forward through the wizard.
I run into problems when I traverse back from say Page 2 to the previous page in this case Page 1 resulting in validation errors from page 2 displayed on Page 1.
Works as intended:
Page0 ->(Validate)-> Page1->(Validate)->Page2->(Validate)Finish
Does not work as intended:
Page0->Page1->Page2(Leave required fields empty)->Page1 results in Page 2 validation errors being displayed on Page1.
Is there a parameter or method I need to set/call to clear all validation errors when navigating backwards through AbstractWizardFormController pages?
My validate() method in the controller uses a case statement to validate each page as the wizard is traversed like so:
thanks in advance.
AccountValidator accountValidator = (AccountValidator).getValidator();