LoginForm appears multiple times

Hi!

I currently have some trouble with the LoginForm.

Here’s the init method of my application (reduced form):


public void init() {
    setMainWindow(new Window());
    VerticalLayout loginStuff = new VerticalLayout();
    loginStuff.addComponent(new Label("login:"));
    loginStuff.addComponent(new LoginForm());
    getMainWindow().addComponent(loginStuff);
}

Here’s my site-configuration in apache2 (/etc/apache2/sites-enabled/my-site):


Listen 8080
<VirtualHost *:8080>
        AllowEncodedSlashes On
        ServerAdmin webmaster@localhost
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined

        ProxyRequests Off
        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>

        ProxyPass / http://localhost:5081/frontend/
        ProxyPassReverse / http://localhost:5081/frontend/
</VirtualHost>

Now i can access my application via localhost:5081/frontend (directly) or localhost:8080 (proxied).

The problem is that with the proxy-way the loginform is rendered three times.

You’ll find two screenshots in the attachments.

Any idea how to fix it? Is this a vaadin specific problem or a problem with my apache configuration?

MfG

Karl
12740.jpg
12741.jpg