You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Craig McDaniel <cr...@nplus1.net> on 2002/02/11 19:56:01 UTC
RunData setScreenTemplate()
Can somone tell me if setScreenTemplate() in the RunData class will
execute the appropriate Screen class as well? What I am trying to
figure out is how to choose the screen from within an Action class
without having to build up the context and call the template in the
Action class (by using the appropriate Screen class). I know that this
can be done with a redirect, but I would rather not do that as it has
severe limitations.
For example, will data.setScreenTemplate("NewScreen.vm") cause
doBuildTemplate() in my NewScreen class to be executed?. If not, how
can this be done?
Later,
--
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ craigm@nplus1.net
/_/_/_/_\ (502) 479-5557
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: RunData setScreenTemplate()
Posted by Rodney Schneider <rl...@arcalink.com>.
Hi Craig,
Don't us setScreen(), that is a leftover method from the days when Turbine
used ECS for the view (ie: the view was rendered by a Java class, rather than
a rendered from a template). setScreenTemplate() will do the job.
Regards,
-- Rodney
On Tuesday 12 February 2002 06:01 am, you wrote:
> Maybe I posted too soon. I just found setScreen() in the RunData
> class. I assume this does what I want?
>
> On Mon, Feb 11, 2002 at 01:56:01PM -0500, Craig McDaniel wrote:
> > Can somone tell me if setScreenTemplate() in the RunData class will
> > execute the appropriate Screen class as well? What I am trying to
> > figure out is how to choose the screen from within an Action class
> > without having to build up the context and call the template in the
> > Action class (by using the appropriate Screen class). I know that this
> > can be done with a redirect, but I would rather not do that as it has
> > severe limitations.
> >
> > For example, will data.setScreenTemplate("NewScreen.vm") cause
> > doBuildTemplate() in my NewScreen class to be executed?. If not, how
> > can this be done?
> >
> > Later,
> > --
> > \ Craig Patrick McDaniel
> > /_\ Software Engineer
> > /_/_\ n + 1, Inc.
> > /_/_/_\ craigm@nplus1.net
> > /_/_/_/_\ (502) 479-5557
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org> For additional
> > commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: RunData setScreenTemplate()
Posted by Craig McDaniel <cr...@nplus1.net>.
Maybe I posted too soon. I just found setScreen() in the RunData
class. I assume this does what I want?
On Mon, Feb 11, 2002 at 01:56:01PM -0500, Craig McDaniel wrote:
> Can somone tell me if setScreenTemplate() in the RunData class will
> execute the appropriate Screen class as well? What I am trying to
> figure out is how to choose the screen from within an Action class
> without having to build up the context and call the template in the
> Action class (by using the appropriate Screen class). I know that this
> can be done with a redirect, but I would rather not do that as it has
> severe limitations.
>
> For example, will data.setScreenTemplate("NewScreen.vm") cause
> doBuildTemplate() in my NewScreen class to be executed?. If not, how
> can this be done?
>
> Later,
> --
> \ Craig Patrick McDaniel
> /_\ Software Engineer
> /_/_\ n + 1, Inc.
> /_/_/_\ craigm@nplus1.net
> /_/_/_/_\ (502) 479-5557
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ craigm@nplus1.net
/_/_/_/_\ (502) 479-5557
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>