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.
changing myiu content from loginapp.class
Hi all,
I am new at vaadin, with little java knowledge,
doing test app with login screen,
in myui
i have this,
if (CurrentUser.isLoggedIn()) {
setContent(new FullApp());
} else {
setContent(new LoginApp());
}
LoginApp loads and and auth user from shiro, everything works,
but i dont know to to set content at myui after auth in LoginApp class,
so i did this,
if (CurrentUser.isLoggedIn()) {
setContent(new FullApp());
} else {
setContent(new LoginApp((UI)this));
}
and in loginapp
after auth
UI.setcontent(new FullAapp());
This works well too,
But i didnt feel comfortable with this code,
Is this good way of doing this or is there any proper way of doing,
Thanks for you replies,
Hi,
this sounds like a typical use case for the built-in Navigator. Take a look at the Book of Vaadin for more info: https://vaadin.com/docs/-/part/framework/advanced/advanced-navigator.html
HTH,
Olli