|
From: <jue...@we...> - 2004-11-29 10:35:17
|
I've removed the deprecation from "exposeHelpers(Context, = HttpServletRequest)", as there is a valid use case: instantiating = further Velocity tools that need a Velocity Context. =20 I've also added an overloaded "exposeHelpers" variant that takes = VelocityContext, HttpServletRequest and HttpServletResponse: mainly for = creating subclasses of ViewTool that depend on a Velocity ViewContext, = with ChainedContext being the only out-of-the-box implementation and in = turn depending on HttpServletRequest and HttpServletResponse. =20 Finally, I've added an overloaded "createVelocityContext" method that = takes model Map, HttpServletRequest and HttpServletResponse: You could = potentially create a ChainedContext instance there, if you wanted = request attributes etc to be visible in the Velocity template mode. = Tools that depend on ViewContext could then simply take the passed-in = Velocity Context as-is, passing it into "init". =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Roberto Cosenza Gesendet: Mo 29.11.2004 09:16 An: spr...@li... Betreff: [Springframework-developer] VelocityView and exposeHelpers Hi. A guy in the user mailinglist has pointed out a problem. It tries to configure the velocity-tools in the exposeHelpers method but he can't since they require a HttpServletResponse (arguably). Maybe there should be an overrided version of the exposeHelpers method having both request and response as args. /Rob -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |