]> source.dussan.org Git - vaadin-framework.git/commitdiff
Call attach only once for children (#9006)
authorArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 08:27:41 +0000 (11:27 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 14:11:32 +0000 (17:11 +0300)
src/com/vaadin/ui/Form.java

index 39b12e67e2b7d18ec2dae5724a682f9dbfd3f0b5..796ad1744880bf1eda15cf8143ea2ce4993e4f3d 100644 (file)
@@ -967,34 +967,6 @@ public class Form extends AbstractField<Object> implements Item.Editor,
         return newField;
     }
 
-    /**
-     * Notifies the component that it is connected to an application
-     * 
-     * @see com.vaadin.ui.Component#attach()
-     */
-    @Override
-    public void attach() {
-        super.attach();
-        getLayout().attach();
-        if (getFooter() != null) {
-            getFooter().attach();
-        }
-    }
-
-    /**
-     * Notifies the component that it is detached from the application.
-     * 
-     * @see com.vaadin.ui.Component#detach()
-     */
-    @Override
-    public void detach() {
-        super.detach();
-        getLayout().detach();
-        if (getFooter() != null) {
-            getFooter().detach();
-        }
-    }
-
     /**
      * Checks the validity of the Form and all of its fields.
      *