summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-04-11 20:54:58 +0300
committerArtur Signell <artur@vaadin.com>2012-04-12 09:58:30 +0300
commite55ee60d44d4397ff605aef2b37dbec7aa99f742 (patch)
treeb41c7fa04b295da5b242d8e75117124b35b2b661 /src
parentc9f2bc3b79adeff283545b9a380f6b6ef19d6fbb (diff)
downloadvaadin-framework-e55ee60d44d4397ff605aef2b37dbec7aa99f742.tar.gz
vaadin-framework-e55ee60d44d4397ff605aef2b37dbec7aa99f742.zip
Workaround for problem with wrong state being created
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/ui/Root.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java
index febfc8c4dd..541127e092 100644
--- a/src/com/vaadin/ui/Root.java
+++ b/src/com/vaadin/ui/Root.java
@@ -30,6 +30,7 @@ import com.vaadin.terminal.Resource;
import com.vaadin.terminal.Vaadin6Component;
import com.vaadin.terminal.WrappedRequest;
import com.vaadin.terminal.WrappedRequest.BrowserDetails;
+import com.vaadin.terminal.gwt.client.ComponentState;
import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.ui.notification.VNotification;
import com.vaadin.terminal.gwt.client.ui.root.RootServerRPC;
@@ -473,6 +474,13 @@ public abstract class Root extends AbstractComponentContainer implements
return (RootState) super.getState();
}
+ @Override
+ protected ComponentState createState() {
+ // This is a workaround for a problem with creating the correct state
+ // object during build
+ return new RootState();
+ }
+
/**
* Overridden to return a value instead of referring to the parent.
*