2009/3/13 Nathan Bubna <[email protected]>: > On Thu, Mar 12, 2009 at 4:14 PM, Antonio Petrelli > <[email protected]> wrote: >> Is there a way to solve this problem? > > Yes. :) But i don't know if it can be done internal to Tiles2Tool > with the current API you have for it. I have the suspicion that if it > had a more Velocity-ish API (rather than the tag-like one it has), > this might not be an issue.
The reason that Tiles2Tool has this structure is that I foresee a sort of automatic generation of code (JSP taglib, FreeMarker template directives, Velocity tools, etc.). I think that more Velocity-ish methods will be added. > So, i am considering adding a "page/context" scope to the Tools > infrastructure. Or maybe try to have just one context per request? I discovered an easier way: using Renderable, because the "context" parameter is connected to the current template. I will commit this code soon. Thanks a lot! Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
