I created a very similar class to AbstractAjaxTimerBehavior, with the
difference that I'm using setInterval instead of setTimeOut in
#getJsTimeoutCall and I'm assigning a variable name to it, so that I can use
the clearInterval in #getFailureScript , the problem I got is that in the
response envelope I'm getting the script in #getJsTimeoutCall back, which is
inside the <evaluate> block, and I don't want that because when the
setInterval is set again the value in the variable changes therefore I
cannot clear the interval and also it makes the response heavier.

So basically I just want the script in #getJsTimeoutCall executed only once
just to start the interval. I tried to make the response not return the
"evaluate" block,  but I was unsuccessful.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxTimerBehavior-and-setInterval-and-clearInterval-tp4657268.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to