From: Mike W. - de B. <M.W...@tr...> - 2005-07-14 13:03:08
|
Go Marc go! And others... I have to little experience & time to help you all building WM (except for the small adjustments send earlier). But I really like the idea's and solutions described below. Greetings Mike Don't let WM <code>die;</code> PS. If I find the time I will try to install the latest WM version on my PC. -----Oorspronkelijk bericht----- Van: web...@li... [mailto:web...@li...] Namens Marc Palmer Verzonden: donderdag 14 juli 2005 11:02 Aan: web...@li... Onderwerp: [WebMacro-user] 2.0 (2.1?) release update... Guys, FYI I have downloaded, built and used the latest WebMacro in a basic test app and nothing fundamental seems broken. Has anybody else done this? A quick update on the JSP and WM stuff that I have done but is not comitted yet because of the pending release, which I think is 2.0 :) and this new stuff should go in 2.1: * I have modified my local WM build to include an org.webmacro.adapters package, and beneath this are "jsp" and "spring" packages. * I have modified the build.xml to build everything (requires addition jsp-api.jar and spring.jar in /lib, which I have done) but webmacro.jar produced does not contain these adapters, they are put into a new webmacro-adapters.jar * The JSP code is pending some refinements I'm discussing with Keats. If anybody on the dev list has an interest in this we can discuss it there. So shout if you care! It's important to remember that this can does not have to be our final iteration of this by any means. * The Spring MVC code is in and working, in that you can use WebMacro as a Spring view. I suppose we need to get an example in there, but I'm not so sure because it's useless to you unless you use Spring already, and if you use Spring already there's nothing new to learn. A little bit of docs on how to use config the WebMacroViewResolver in the Spring bean config will be needed though, which I will of course supply. * I have one issue to look into with the Spring stuff which is how to ship the utility macros in spring.wm inside the webmacro-adapters.jar but have it easily accessible on the template path to WM templates used by the spring view. Anybody have any clues? In my opinion this is another area where the limitations of the broker/WM configuration mechanisms come to haunt us. I intend to blog the info about the new Spring/JSP stuff, and to blog the release of 2.0 when it is done. We need to raise WM's profile again as the superior templating language that it is! For 3.0 I firmly believe that what we need to do is: * Refactor the whole Broker mechanism in favour of a standard runtime-configurable bean-based approach. This will mean that WM can be configured from "Inversion of Control" / "Dependency Injection" bean containers such as Spring and Pico. It will also make WM -much- easier to use and configure. i.e. we should be able to do something like: WMConfig config = new WMConfig(); config.getTemplateLoaders().add( myCachingTemplateLoader); config.getContextToolFactories().add( myFactory); * Remove any and all singleton classes in favour of configurable bean instances retrieved from a configuration object. * Develop and ship more helpers and macros, including a wrapper (if necessary) for the large number of velocity tools / VelociMacros out there if possible. Why not leverage their hard work :) Kind regards, Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Webmacro-user mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-user |