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

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

How to design an application with several "states"(screens)?

Hristo Hristov
1 decade ago Dec 04, 2011 8:23pm
Jouni Koivuviita
1 decade ago Dec 05, 2011 6:54am
Hristo Hristov
1 decade ago Dec 05, 2011 8:08am
Basil Bourque
1 decade ago Dec 06, 2011 12:00am

Yes, you can switch content of the main window on-the-fly. You can switch out sub-areas within the main window. Not only is this legal, I've heard the Vaadin team strongly recommend doing so. They suggest creating tabs or other GUI navigation devices using Vaadin widgets to guide your users to various parts of the app, all living within the single main window.

Remember that when you switch the main window or its sub-areas, the switched out content is still "open" in the sense that it is still instantiated and executing. All your layouts are objects in memory on the server-side. Whether they are shown on-screen to the user is irrelevant to their life-cycle.

While you can open multiple native (browser) windows/tabs, doing so can be problematic. The Vaadin team has talked about improving support for multiple native windows/tabs for Vaadin 7.

--Basil Bourque