Hi everybody,
i open in my Application a new native Window. The Native Window have an Closelistener.
Window applicationWindow = new NativeWindow();
applicationWindow.addListener(new Window.CloseListener() {
public void windowClose(CloseEvent e) {
e.getWindow().removeAllComponents();
removeWindow(e.getWindow());
close();
}
});
VaadinWeb vaadinWeb = new VaadinWeb();
applicationWindow.addComponent(vaadinWeb);
WebApplicationContext ctx = (WebApplicationContext) getContext();
int width = ctx.getBrowser().getScreenWidth();
int height = ctx.getBrowser().getScreenHeight();
addWindow(applicationWindow);
getMainWindow().open(
new ExternalResource(applicationWindow.getURL()),
"Application", width, height, Window.BORDER_NONE);
When i close the native Window with “X”, the Listener get an event, and close the Native Window.
My Problem is, that the main Window doesn’t reload the application.
How can i reload the application? The normal .close() doesn’t do it.
Thanks for your help.