Re: Zone inside a form with fadeout works each second time ...

2011-08-14 Thread Taha Hafeez
Do it using javascript using Tapestry.ZONE_UPDATED_EVENT event. On Sun, Aug 14, 2011 at 7:53 PM, Gunnar Eketrapp wrote: > And the solution is > > 2011/8/14 Taha Hafeez > >> It took me an hour to figure it out (Watching avatar at the same time >> didn't help) >> >> When the zone div is invi

Re: Zone inside a form with fadeout works each second time ...

2011-08-14 Thread Gunnar Eketrapp
And the solution is 2011/8/14 Taha Hafeez > It took me an hour to figure it out (Watching avatar at the same time > didn't help) > > When the zone div is invisible, 'show' method is called and if it is > visible then 'update' method is called. When you first submit, the > zone is visible so

Re: Zone inside a form with fadeout works each second time ...

2011-08-14 Thread Taha Hafeez
It took me an hour to figure it out (Watching avatar at the same time didn't help) When the zone div is invisible, 'show' method is called and if it is visible then 'update' method is called. When you first submit, the zone is visible so 'update' is called which fades it away and sets its style to

Re: Zone inside a form with fadeout works each second time ...

2011-08-14 Thread Gunnar Eketrapp
I took some time to reproduce this as a small T5 example ... The fadeout only works first time after page just has been loaded. *TML* http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p

Re: Zone inside a form with fadeout works each second time ...

2011-08-13 Thread Taha Tapestry
How are you persisting your message ? For a post request tapestry uses redirect after post and so if you don't persist the message it will be lost. For such situations we have @Persist(PersistenceConstants.Flash) which stores the value in a session till it is read for the first time Regards T

Zone inside a form with fadeout works each second time ...

2011-08-13 Thread Gunnar Eketrapp
Hi! I have zone inside a form in which I intend to give a response message to the user whereafter it is faded out. I.e. "Your changes where saved ..." Everything works like a charm except the fact that the message is only faded out each second time. There are no javascript error reported in the