we have a fundamental question about Adapter and Page interaction. It seems that Adapter stays “alive” after page closing. How we can handle it?
We have following situation - we are using a callback interface to display current state of external system. On the callback we are calling a pushlet to refresh the window. It looks like we are still receiving callbacks for already closed pages. That leads of course to exceptions. What is the right way of handling the situation? At the moment we are releasing the callback in Adapter.finalize() method. This seems to be to late.
The questions are
Where is the right place to perform finalization and cleaning of all used instances (assuming that session should be closed if window is closed)?
How to check in a method within Adapter that the window does not exist anymore?