Feature Requests item #1539101, was opened at 2006-08-12 16:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1539101&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.3
Status: Open
Priority: 5
Submitted By: Ingram Chen (ingramchen)
Assigned to: Nobody/Anonymous (nobody)
Summary: A stop/restart-able AjaxSelfUpdatingTimerBehavior

Initial Comment:
Currentlty AjaxSelfUpdatingTimerBehavior is not
possible to stop and restart. It would be better to
have a new Behavior to do constant polling and with
more control.
Below are from mailing list :

===============
Is there any way to stop AjaxSelfUpdatingTimerBehavior
programmatically ?
I am writting a small chat app and require to stop self
updating to reduce server load when
user is idle. I check AbstractAjaxTimerBehavior but
both updateInterval and response(target) are final...

Is it possible to do ? 

-Ingram Chen

===============
no it is not possible. i actually needed the same
functionality recently and so i noticed this
shortcoming as well. please file an rfe for 1.3 and i
will add it in...right now i cant because it will break
the api.

in the meantime what i did was write an ajax poller
that is similar to the timer behaviors but allows me to
stop it, its only a few lines of code...i will check if
i can release it monday if you would like. its not
exactly what you want but it might be a good starting
point.

-Igor

respond(target) { if (continuepolling()) {
target.addjavascript(

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1539101&group_id=119783

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to