|
From: Ken K. <kk...@kk...> - 2003-07-30 21:26:00
|
Alef, Alef Arendsen (JTeam) wrote: >... > >Today I introduced one of our developers to Spring, because he needs to >take over things when I'm on a holiday (next two weeks) and he had major >difficulties in seeing when what methods are called in the controller >stuff. Especially the formcontroller classes are pretty hard with only >the JavaDoc. I'll be providing extending the JavaDoc of those classes a >bit more, since I haven't got anything to do anyway before this weekend >(that's new for me, and it's wonderful ;-). Something like a >sequence-diagram or something might be useful (but then in JavaDoc) and >small configuration-snippets and usage-example... > It is a complex process. I struggled greatly with this while working on Petclinic. It's far from a complete picture, but there is some information on formcontrollers in the Petclinic tutorial.html file you may find useful. See the heading "Controllers". The Petclinic forms show simple examples of some useful techniques. I would also suggest looking in particular at the source code for : - the handleRequestInternal method in AbstractFormController - the bindAndValidate method in BaseCommandController. Hope this helps. Ken |