VelocityScreen is presenting the method doBuildTemplate(data, context)
as a convenience for screens which extend it, so that you do not have to
go to the trouble of getting it out of RunData in every screen. The
context is stored in RunData as it is available to other modules such as
actions and navigations.
You are supposed to override the doBuildTemplate(data, context) method.
john mcnally
Sky Torch wrote:
>
> 3 reasons:
>
> 1. in VelocityScreen class, getContext(RunData) is
> called to retrieve Context().
>
> 2. in Default screen sample code bundled in TDK 1.1,
> that's the code i'm asking in my first email. from
> that screen class, aparently Context param is not
> being used at all.
>
> 3. context is per request, RunData seems a ligitimate
> place to store it.
>
> what do you think ?
>
> thanks.
>
> -sky
>
> >From: Jon Stevens <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: turbine-dev <[EMAIL PROTECTED]>
> >Subject: Re: why this api and this class
> >Date: Wed, 16 May 2001 19:06:25 -0700
> >
> >on 5/16/01 6:52 PM, "Sky Torch" <[EMAIL PROTECTED]> wrote:
> >
> > > jon,
> > >
> > > from this class.
> > >
> > > what do you think of the sample screen code i sent in
> > > last email ?
> > >
> > > thanks.
> >
> >No, you misunderstand...where did you get the idea that you should get a
> >Context object from RunData?
> >
> >-jon
> >
> >--
> >If you come from a Perl or PHP background, JSP is a way to take
> >your pain to new levels. --Anonymous
> ><http://jakarta.apache.org/velocity/ymtd/ymtd.html>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]