]> source.dussan.org Git - vaadin-framework.git/commitdiff
Workaround for incorrect hierarchy (#8797)
authorArtur Signell <artur@vaadin.com>
Tue, 8 May 2012 11:28:44 +0000 (14:28 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 13 May 2012 17:21:22 +0000 (20:21 +0300)
src/com/vaadin/terminal/gwt/client/ui/customfield/CustomFieldConnector.java

index b2801390dab4cef62fa89f362044d4320c51dfc2..09045df6ebd00ba56a819645462a225f5aa753d3 100644 (file)
@@ -3,11 +3,20 @@
  */
 package com.vaadin.terminal.gwt.client.ui.customfield;
 
+import com.google.gwt.core.client.GWT;
+import com.vaadin.terminal.gwt.client.AbstractFieldState;
+import com.vaadin.terminal.gwt.client.communication.SharedState;
 import com.vaadin.terminal.gwt.client.ui.Connect;
 import com.vaadin.terminal.gwt.client.ui.customcomponent.CustomComponentConnector;
 import com.vaadin.ui.CustomField;
 
 @Connect(value = CustomField.class)
 public class CustomFieldConnector extends CustomComponentConnector {
+    @Override
+    protected SharedState createState() {
+        // Workaround as CustomFieldConnector does not extend
+        // AbstractFieldConnector.
+        return GWT.create(AbstractFieldState.class);
+    }
 
 }