I'm experimenting with wicketstuff-push-timer, and I wonder if there's
a way to cleanly uninstall a node.

Use case: The server pushes a number of progress events during a long
running action. When the action is finished, no more events will be
sent, so there is no point for the browser to continue polling the
server.

I've tried pushService.uninstallNode(), but I always end up with an
exception of the following kind:

Caused by: java.lang.IllegalStateException: Behavior must be added to
component before its id can be generated. Behavior:
org.wicketstuff.push.timer.TimerPushBehavior@3522971b, Component:
org.apache.wicket.Behaviors@6d96e397
        at org.apache.wicket.Behaviors.getBehaviorId(Behaviors.java:252)
~[wicket-core-1.5.1.jar:1.5.1]
        at org.apache.wicket.Component.getBehaviorId(Component.java:4413)
~[wicket-core-1.5.1.jar:1.5.1]
        at org.apache.wicket.Component.urlFor(Component.java:3290)
~[wicket-core-1.5.1.jar:1.5.1]
        at 
org.apache.wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:89)
~[wicket-core-1.5.1.jar:1.5.1]
        at 
org.apache.wicket.ajax.AbstractAjaxTimerBehavior.getCallbackScript(AbstractAjaxTimerBehavior.java:125)
~[wicket-core-1.5.1.jar:1.5.1]
        at 
org.apache.wicket.ajax.AbstractAjaxTimerBehavior.getJsTimeoutCall(AbstractAjaxTimerBehavior.java:118)
~[wicket-core-1.5.1.jar:1.5.1]

It seems that uninstallNode() only removes the behaviour but does not
stop the timer.

Any hints welcome...

Best regards,

Harald

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

Reply via email to