Hi all,
I’m currently using Vaadin 7 for creating a RIA.
I’m facing the Login problem: after a user has been authenticated through a LoginView, he should visualize a MainView with his name.
The entry point is a UI Observer class that has a Navigator for navigating from LoginView to MainView (both Observable).
Once authentication is correctly completed LoginView tries to store user data as a VaadinSession attribute with the following code:
I’m currently using Vaadin 7 for creating a RIA and I’m designing the Login functionality.
The application design is simple:
A UI class performs navigation beetwen different View classes. In particular, the first displayed View is a LoginView class and after a user has been authenticated the UI class redirects the user towards a MainView.
After authentication I’d like to set User data (eg name and surname) into the session and display it always (no matter what specific view) on the top right corner of the Web Application.
As a begginner I read the Vaadin Book and I firstly used the scheme illustrated in chapter 11th https://vaadin.com/book/-/page/advanced.global.html, but it doesn’t seem to work as expected, probably because I’m using View navigation scheme.
So I use the following approach:
Once authentication is correctly completed LoginView tries to store user data as a VaadinSession attribute with the following code: