|
From: <jue...@we...> - 2003-05-08 19:01:20
|
Hi web MVC users, As you may already have noticed, I've applied quite extensive = refactorings to the web MVC hierarchy. There are new hooks for = customization (BaseCommandController's initBinder and onBindAndValidate) = that required restructured internals, and a clearer and stricter use of = "final". On every level, subclasses can now only override the methods = that are actually meant to be overridden by application classes. A main addition is AbstractWizardFormController, supporting a = wizard-style workflow via a pages property (a String array of view = names) and abstract validatePage, processFinish, and processCancel = methods. It also offers appropriate onBindAndValidate and referenceData = methods with page parameter. Please consult its JavaDoc for details. In the course of introducing the wizard controller, I've rearchitected = the form controllers. There's AbstractFormController now, providing = abstract showForm and processSubmit methods, being the common superclass = of both AbstractWizardFormController and SimpleFormController. The = latter is basically what FormController and SessionFormController were = before, offering formView and successView properties, and various = onSubmit methods for convenient overriding. Apropos, session handling is = now integrated into AbstractFormController, configurable via the = "sessionForm" property. There's some effort involved in migration existing classes depending on = the version that came with Rod's book, or earlier Spring CVS snapshots. = The necessary changes should be straightforward, so I hope that they = don't cause too much hassle. Of course, I will assist in any problems = that might occur. Juergen DI J=FCrgen H=F6ller Senior System Architect ______________________________________ werk3ATS - division systementwicklung part of werk3AT internetmedien oeg europaplatz 4 A - 4020 linz t. +43 (0) 732 71 65 29 502 f. +43 (0) 732 71 65 29 3 jue...@we... www.werk3at.com ______________________________________ werk3ATS - WIR ENTWICKELN ERFOLG |