views:

43

answers:

2

I'm using Vaadin framework and everything is setup fine using the Book of Vaadin. When I alter source code it automatically builds and synchronizes the server which I can see in the Server tab, however when I refresh my browser window nothing is changed.

The only time when I can see the change is when I select my module in the Server tab and choose Clean Module Working Directory in the right-click menu.

I have looked everywhere in Eclipse, but there must be a way where this is not needed or is done automatically, because it's somewhat tedious. Any ideas?

A: 

Which browser are you using? The Eclipse built-in browser (based on IE, I think) is not the best at noticing changes to the application.

Anyway, try appending "?restartApplication" after your URL to force restarting the app.

hezamu
A: 

I had same problem, before i finished reading book of Vaadin. In my case it was because of session, i just add close listener for mainWindow:

mainWindow.addListener(new Window.CloseListener() {

        @Override
        public void windowClose(CloseEvent e) {
            getMainWindow().getApplication().close();
        }
    });

It will close old session when F5 is pressed, try it!

Rinat Tainov