On Wed, Oct 15, 2008 at 11:43 AM, André van Toly <[EMAIL PROTECTED]> wrote: > Hi, > > I'm OK with making the VPRO wizards a new MMBase application. What I do not > understand, but haven't really looked into I must admit, is the dependence > on Spring. Maybe you can elaborate on that a bit.
hi André I will write a technical walk through when i release it, but the short version is that two parts of spring are used: spring mvc and spring data binding. Spring mvc is used to handle all the posts from the wizards, map them to the appropriate controller and handle errors. Spring data binding is used to instantiate and set properties on 'action' beans. Each action that you can perform with the editors are encapsulated in a bean. Things like 'create node', 'sort node up in list', 'update node'. The names of the html form fields correspond to setters on these action beans. It is possible to combine any number of actions in one request. This is nice for two reasons: - There is 100% decoupling between the front end and the back end. This makes the editors very flexible. You can use the tag files to create standard editor components, but you can just as easily create custom editor bits, that can handle tasks of any complexity. you don't have to know how the actions work internally, you just have to know the setters and populate them correctly. - It is very easy to add your own custom actions. Just extend the abstract 'Action' class, and register your class in the spring context XML. so, that's it. basically. Hope that helped. > > Op 15 okt 2008, om 11:22 heeft Ernst Bunders het volgende geschreven: >> >> Well, I totally agree with you, but I don't see how it is possible to >> do development on them if after each little change you have to >> redeploy a jar. I just don't see it. If you have some answer to that, >> I'd go along gladly. > > While developing the ones in WEB-INF/tags prevail above the ones in the jar, > is my experience. Or don't they? Well the problem is they have a different name space uri, so it has to be either one thing or the other... regards Ernst > > ---André > > -- > André van Toly > MMBase development & Userfriendly webdesign > > W: http://www.toly.nl > M: +31(0)627233562 > ------------------------------------------------------------------~~<<>>~~ > > _______________________________________________ > Developers mailing list > Developers@lists.mmbase.org > http://lists.mmbase.org/mailman/listinfo/developers > > > _______________________________________________ Developers mailing list Developers@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/developers