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