From: Artur Signell Date: Thu, 21 Jun 2012 08:27:41 +0000 (+0300) Subject: Call attach only once for children (#9006) X-Git-Tag: 7.0.0.alpha3~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0010ce4439e90a8da20f61516d3ca8404c17a9af;p=vaadin-framework.git Call attach only once for children (#9006) --- diff --git a/src/com/vaadin/ui/Form.java b/src/com/vaadin/ui/Form.java index 39b12e67e2..796ad17448 100644 --- a/src/com/vaadin/ui/Form.java +++ b/src/com/vaadin/ui/Form.java @@ -967,34 +967,6 @@ public class Form extends AbstractField 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. *