I would like an entity browse screen to open when a user logs in. I’ve tried to use MainWindow but that seems to create a “work area” that gets loaded with a screen after a user chooses one. i know that you can use the URL to open a screen, but that makes for a long URL.
How can I cause a particular screen to be opened on login?
You can do this by extending the main screen and in the controller add following code.
@Override
public void ready() {
// Wait for the super to be ready
super.ready();
// Then load the initial screen
openWindow("app$initial-screen", WindowManager.OpenType.THIS_TAB);
}
Where did you find this in the documentation? I searched everywhere and couldn’t figure it out. Do I need to be looking in Vaadin docs or something?
As for the “create a default main window/extend the main window” question, I actually clicked on the “Create Main Window” link at the bottom of the Screens section. Then I opened that and added your code to the Controller.