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,