On Thu, 09 Nov 2000, Rafal Krzewski wrote:
>
> 'Velocity Context' document is really good. It's a good introduction
> into some
> concepts important in development of Turbine Applications.
> I don't quite like the Image class part. It definitely should not have
> hardcoded
> path in it, it should become org.apache.turbine.util.template.StaticLink
> class
> and should be inserted in the context in the same place where
> TemplateLink is.
> (TurbineVelocityService.getContext).
I agree that this document is really helpful, but I puzzled over the same issue
as Rafal, and was about to post to the list before Rafal beat me to it. We've
been adding the same kind of objects to the Context by subclassing (in our case)
TurbineWebMacroService and overriding getContext(), but on reading the
document I began to worry that there was something dangerous about doing that.
I know that I could study the source carefully and find the answer, but I would
also welcome it if someone with more experience than me could critically review
the difference between these two approaches.
Thanks,
Tom
--
Tom Green
Information Architect
Digital Media On Demand, Inc.
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]