Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

how to reset the application from a subwindow's button

Kai Klostermann
7 years ago Aug 03, 2015 9:08am
Marko Grönroos
7 years ago Aug 03, 2015 11:13am

Where did you get the getApplication()? It doesn't exist in Vaadin 7. It's not in the book page either and...oh, it's still mentioned in one section.

You probably want to use "Session.getCurrent().close();".

There's some examples here. If you don't set the page location, closing the session will restart the application (the session and UIs) immediately.

Kai Klostermann
7 years ago Aug 03, 2015 11:36am