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.
i18n in Vaadin7: user is forced to log out if page is refreshed
Hello all,
from github (https://github.com/peholmst/vaadin-spring-webinar) i have found one example "i18n" which works. It can translate the text in two language.
Now i have integrated a login form with this example and met a problem: after one login into the project, if he try to translate the text by click on corresponding button, he was forced to logout automatically.
Also when keyboard "F5" is pressed, one was forced to log out automatically.
What i expected is that, after one login into the project, the translation must work, if the corresponding button is clicked.
My project uses eventbus, spring and vaadin 7. It can be found in github: https://github.com/wantime/i18n
Your suggestion will be highly appreciated.
-------------- following are some code snippets ------------------
Code snippets 1: show login window
@Override
protected void init(VaadinRequest request)
{
setLocale(request.getLocale());
EventBusUserLogin.register(this);
setContent(new LoginWindow());
}
Code snippets 2: jump to main view after login
@Subscribe
public void userLoginRequested(final EventUserLogin.UserLoginRequestedEvent event) {
setContent(this.generateMainView());
}
----------- related topic in this forum ----------
"Reload page in browser issue ?"
"Reload page without ending a session"
the problem seems to be resolved, after i have used the login form from https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20simple%20login%20view