|
From: Steve G. <sg...@ya...> - 2003-12-24 16:38:48
|
I posted this in the user group but I think its more relevant for the developer group. My colleague is having a problem with the AbstractWizardFormController. He posted the message to to the forum only, so I figured I'd also post it here: --------------------------------------------- IMHO, WizardFormController has some limitations with the way it handles pages. For example, In a 5 step process, user steps into page 4, and then hit back button on his browser, to page 2 and resubmit form. the backing-form is still in session, so it will try to bind and validate. It get current page which will be 4. validation specific to page 2 was not called but validation of page 4 was invoked. I would like to rewrite WizardFormController to overload getCurrentPage() method, but it was declared final. Neither could I use an interceptor to setup the pages because getPageSessionAttributeName() is specific to the class name. Currently, I have to change currentPage variable inside onBindandValidate() method to use some param passed in from request. Or I could rewrite AbstractWizardFormController to remove those final methods. Any suggestions? Best Regards, -Leo --------------------------------------------- __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |