Re: component initialization on post back

2012-07-23 Thread ZKN __
 Thanks, onPrepareForSubmit () worked in my case. I'm not 100% sure but I think  onActivate() is only available for pages.  > Оригинално писмо >От: Bryan Lewis jbryanle...@gmail.com >Относно: Re: component initialization on post back >До: Tapestry us

Re: component initialization on post back

2012-07-23 Thread Lance Java
Tapestry performs a post in two phases (using redirect-after-post semantics). 1. onSuccess() is an event handler method. This is fired by the POST request. http://tapestry.apache.org/component-events.html 2. @SetupRender is a render phase method, this is fired by the second request (the redirect)

Re: component initialization on post back

2012-07-23 Thread Bryan Lewis
Try onActivate() or onPrepareForSubmit(). On Mon, Jul 23, 2012 at 7:19 AM, ZKN __ wrote: > Hi, > I have a custom component that needs to be initialized every time before > use. For this I wrote a method like this: > @SetupRender > public void prepare() { > But this method only gets invo