Yea thanks!

I discovered the jumpstart app after this quuestion was raised and it's a
great source for T5 newbies.

It ought to be linked from the T5 site!


2009/10/14 Sergey Didenko <sergey.dide...@gmail.com>

> May be this will help you:
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen
>
> On Sun, Oct 11, 2009 at 11:40 AM, Gunnar Eketrapp
> <gunnar.eketr...@gmail.com> wrote:
> > Hi!
> >
> > I have been porting a web app to T5 for some weeks now and have some
> > questions on how you folks do!
> >
> > I started fresh with using ... onActivate() as method for preparing data
> for
> > the template code.
> >
> > Some times onActivate(ctx) + ctx onPassivate().
> >
> > Actions where handled in onActionFromFoo() or onActionFromBar() methods.
> >
> > Form processing in onSuccess()
> >
> > Fine so far ....
> >
> > Then I read
> >
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/onactivateandonpassivate/3
> > that disencourage using onActivate() as the setup methtod.
> >
> > I also just realised that onActivate() is called prior to onSuccess() ...
> > which makes some of code run twice ....
> >
> > I then thought that ...
> >
> > public void setupRender()
> >
> > ... would be a better place to do my page preparements but then I am not
> > able to navigate to another page.
> >
> >
> > Is onActivate() really such as a bad place do the the preparements? If
> not
> > how do I distinguish between the case
> > where a form is submitted or a normal page rendering.
> >
> > Thanks in advance,
> > Gunnar Eketrapp
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to