Re: Page initialization

2007-02-28 Thread Andrea Chiumenti
Ok, thank you, I'll test what you said, maybe my brain was a bit messed up with the edit table I've implemented. p.s. The JFlyEditTable for Tap 4.1.x are nearly ready maybe next week they will be submitted, I think you'll appreciate it. ciao, kiuma On 2/28/07, Sam Gendler <[EMAIL PROTECTED]> wr

Re: Page initialization

2007-02-27 Thread Sam Gendler
pageBeginRender is called during both rewind and render. I don't know what test you did to make you think it only gets called during rewind. public void pageBeginRender(PageEvent event) { if (!event.getRequestCycle().isRewinding()) { // put render cycle init code here } } I've got

Re: Page initialization

2007-02-27 Thread Andrea Chiumenti
Thank you, but I've seen from code that beginPageRender is called only during rewind so I added a property to the page and did the following: /** * Reset the grid content if the page is accessed without form submission * (refresh or new access), then performs normal renderPage operations.

Re: Page initialization

2007-02-27 Thread Sam Gendler
pageBeginRender (implement PageBeginRenderListener interface). This will be called before rendering both the rewind and render cycle, but you can just put a conditional on cycle.isRewinding() in order to ensure you only re-init the variable during the render cycle. --sam On 2/26/07, Andrea Chi

Re: Page initialization

2007-02-26 Thread Andrea Chiumenti
What I need is that when I access or refresh the page a parameter bound to session must be reset On 2/26/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: Hi!, where do I have to put page initialization code in tapestry 4.1.1? I need that the init method is called only when I render the page, but