I found this topic
Multiple instances of the Application
where the answer is that “For each session there is one instance of your Application class.”
If that’s so, then that means that multiple Applications accesses windows from the same certain application?
I ask this because i get ‘Out of Sync’, but only if opening in different tabs of same browser, it doesn’t happend if one session is in IE7 and one in FF3.5 for instance.
One way to get rid of the Out of sync would probably be
THIS
, but it doesn’t solve the real problem, that i want separate application instances, with it’s own windows for each client.
The server message for Out of sync is:
The way i obtain Out of sync is:
- i open the appliation in two tabs
- i go into one and i modify a node (close or open), so it’s different from the other one
- i go back to the first and try any functionality of the tree, it goes Out of sync right away
The test is quite simple:
public class TestApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window("Test Application");
setMainWindow(mainWindow);
getMainWindow().getContent().addComponent(new TreeSingleSelectExample());
}
}
where TreeSingleSelectExample is the one provided with vaadin package, from the sampler.
What i want, is that each client gets served an instance of the application of his own at the servlet level if possible, or how would i make the init() look, to serve application instances?
I don’t believe this would happend if there were separate application instances. What is the real problem please?
EDIT: i use Vaadin 6.34