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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Spring Boot navigation between Login and Dashboard
Hello everyone,
I'm quite new to Vaadin. I went through the tutorial about Vaading + Spring Boot. Now I'm trying to understand how the Dashboard Demo works.
I'm trying to put together a simple app with a Login view, a Dashboard, and may be a couple of nested views on the Dashboard. In the Vaadin Dashboard Demo, all the views seem to be instantiated via the new keyword. Since I'm using Spring, I would like it to take care of that. Ideally, they should be autowired. But I cannot figure out how to achieve that.
Can someone direct me to a short sample which implements user authentication and uses Spring to instantiate views and navigate between them (via an injected navigator or something).
Hi Pavel,
Check this as a starting poing, https://spring.io/blog/2015/09/17/single-page-web-apps-with-vaadin-spring-1-0,
You can find more info about Navigator https://vaadin.com/wiki?p_p_id=36&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=row-1&p_p_col_pos=1&p_p_col_count=3&_36_struts_action=%2Fwiki%2Fview&p_r_p_185834411_nodeName=vaadin.com+wiki&p_r_p_185834411_title=III+-+Views+and+Navigation+with+Vaadin+Spring
Chatura
Hello, Chatura.
Thanks for your reply. The first article is pretty basic and not very helpful, frankly. The second one I read a couple of times already.
I think the way I will end up doing it is I will make the login page part of the dashboard, but when navigating to it will hide the sidebar.