How do I stop the browser of polling ProgressIndicators?

I have an application that uses two ProgressIndicators, with 1000ms and 500ms frequencies.

When I’m done with the indicators, i call ComponentContainer.removeComponent(progressIndicator) on both of them, hiding them from sight. But the browser still keeps calling for (mostly empty) UIDL changes, three times a second.

How can I get them to stop polling? A page refresh seems to do the trick, but I’d rather have a programmatic way of doing that.

What version of toolkit you use?
Check this:
http://dev.itmill.com/ticket/1581

If’ve had no problems when I remove component.

I’m using 5.2.4, and that ticket seems to be aimed for the 5.2.2 milestone, which is weird.

I’ll update to 5.2.5 and see what will happen, before I go any further…

Nope, no luck. FireBug keeps on logging the “POST UIDL”-events at the same pace as before removing the components.

Ok, sounds like regression. Reopen #1581.

I think I found the fault:

If the indicator is set to either invisible (setVisible(false)) or disabled (setEnabled(false)), the browser stops polling for the indicator. But if I remove the component (container.removeComponent(indicator)), the browser continues to poll for the indicator. This holds true even if I set the component to invisible and/or disabled before I remove it.

I smell a bug…


Edit
: reopened the ticket