LoginForm button problems

I’m trying to do page changes by opening new Windows, as suggested in
this article
. It seems to work pretty well when I use Buttons to initiate the change, but with LoginForm it just doesn’t.

Sample [code]

private void loginFormTest() {
LoginForm lf = new LoginForm();
lf.addListener(new LoginForm.LoginListener(){
@Override
public void onLogin(LoginEvent event) {
openAnotherWindowTest();
}
});

Button b = new Button(“Toolkit button”, new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
openAnotherWindowTest();
}
});

Window main = new Window(“Main window”);
main.addComponent(lf);
main.addComponent(b);
setMainWindow(main);
}

private void openAnotherWindowTest(){
Window newWindow = new Window(“Another window”);
newWindow.setName(“another”);
addWindow(newWindow);
getMainWindow().open(new ExternalResource(newWindow.getURL()));
setMainWindow(newWindow);
}

[/code]
With the regular Button the browser immediately changes url to “another/” and shows the new Window as intended.

With the LoginForm button the browser loads the new Window (the loading bar flashes to signal this). However the screen doesn’t change until I press F5 to refresh page, and the url still doesn’t change.

Is there a way to overcome my latest troubles?

same problem here.
i’ve created a login like the example
http://vaadin.com/wiki/-/wiki/Main/Authenticating%20Vaadin-based%20applications/pop_up?p_r_p_185834411_title=Authenticating%20Vaadin-based%20applications
then i changed the fields/button to the loginForm and now the rederiction to the other window does not work, you need to manually refresh the window.
does anybody know how to fix?
br, klemensl

LoginForm is quite strange workaround component to allow browsers to autofill password field. Unfortunately to do this it does not behave well in other respects as you have noticed.

One workaround could be not to use LoginForm. Maybe you could do something like this:
http://dev.vaadin.com/svn/incubator/paymate-security-demo/src/com/paymate/vaadin/LoginDialog.java
. Unfortunately you would then loose the password autofill.

Another workaround could be to use just simple jsp -page for login.