strange showNotification() error

Hi,

i am using showNotification() inside a LoginListener, which itself is used by LoginForm. On error i am doing this:

getWindow().showNotification(
application.getMessage(“error.login”),

”+application.getMessage(“error.login.desc”),
Window.Notification.TYPE_ERROR_MESSAGE);

For the first time, this works as expected. Means, when i login with wrong data, the notification appears. But when i change the language (have some language buttons on the screen) with:

application.setLocale(new Locale(locale));
application.getViewManager().switchMainScreen(LoginScreen.class.getName(), new LoginScreen(application));
(the second line just does a setContent on my main window somewhere in the code)

and try to login with invalid data again, i dont get the error Notification and nothing happens. In the debug window i dont even see a UIDL request.

Now when i hit the “login” button again, the notification will appear but my main window (with the login Screen) is gone. When i click on close of the notification box, i have nothing on the screen :slight_smile:

First i thought getWindow() gives back different instances but this is not the case. It must have something to do with my language change because w/o language change, i dont run into this issue.

Any ideas?

Marc