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