]> source.dussan.org Git - vaadin-framework.git/commitdiff
Workaround for problem with wrong state being created
authorArtur Signell <artur@vaadin.com>
Wed, 11 Apr 2012 17:54:58 +0000 (20:54 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 12 Apr 2012 06:58:30 +0000 (09:58 +0300)
src/com/vaadin/ui/Root.java

index febfc8c4dd40e496df03210b1eecdb00b604ed32..541127e092ab7a17601530afd218b13593675eff 100644 (file)
@@ -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.
      *