Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread Eelco Hillenius
On 3/7/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi all, I have a panel with an AjaxTimerBehavior that can be replaced through an AjaxLink by another panel. However, this leaves the AjaxTimerBehaviors setTimeout behind to fire off after the replacement. When it fires and wicket can't

Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread James McLaughlin
On 3/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Hmmm, yeah, that's interesting. Maybe others thought of this before, but I hadn't. So we can add header (/body?) contributions via ajax dynamically now. What we want here is the opposite: remove them when the linked component was removed/

Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread Matej Knopp
Hi, I'm afraid there's no easy solution. But two thoughts are quiete right. Either you can clearTimeout, or wrap the setTimeout method callback (not the settimeout itself!) to check a condition whether it actually can fire ajax request to server. But for both these you will need to slightly