Fabien
(Fabien No)
May 17, 2010, 2:51pm
1
Hello,
In my first Vaadin application init, I have setMainWindow(new LoginWindow())
In my loginWindow, after login, I have getApplication().setMainWindow(new MainWindow)
The problem is that MainWindow is not displayed and LoginWindow stays. Did I forgot something ?
Thank you.
Jouni1
(Jouni Koivuviita)
May 17, 2010, 4:57pm
2
There has been a bug that prevents changing the main window on the fly (i.e. without a browser refresh) but I’m not sure is it fixed already or not.
In any case, the workaround is to just change the contenst (i.e. layout) of the main window, not the whole window itself.
E.g.
mainWindow.setContent(new MainView());
Joonas
(Joonas Lehtinen)
May 17, 2010, 5:22pm
3
Actually - thid bug applies only to LoginForm and its onLogin event:
http://dev.vaadin.com/ticket/4417
Fabien
(Fabien No)
May 17, 2010, 8:11pm
4
Thank you very much ! All is ok with only one window and 2 layouts.
I use LoginForm.
Dmitri
(Dmitri Livotov)
May 17, 2010, 8:12pm
5
Hm, at least saw this effect on one of our developer - setMainWindow did not work until manual refresh in a browser, so I suggested him to do explicit window reopening by a new main window URL. Will check tomorrow if he did use latest Vaadin - probably it is not.