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.
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.