>> I am not sure if the openWindowClosed event should be triggered, since I do >> not close anywindows. I just replace a div (which includes the element with >> the ID I later replace from the python main() function. > ok then you want RootPanel.get(id_to_use) - see dynamictable as an example. > But then I need the patch I supplied earlier because RootPanel(id_to_use), caches the result and that gets invalidated by the reinsertion of DOM elements by jQuery. Even if the onWindowsClosed would trigger, the original code does not empty the rootPanels 'cache'.
BTW RootPanel.get(id_to_use) throws an error. Anthon

