From: Leif Åstrand Date: Fri, 14 Sep 2012 11:52:53 +0000 (+0300) Subject: Add comment explaining why beforeClientResponse is used X-Git-Tag: 7.0.0.beta2~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88af61e7576af2220cf857692a484c7e1f2a6326;p=vaadin-framework.git Add comment explaining why beforeClientResponse is used --- diff --git a/server/src/com/vaadin/ui/CssLayout.java b/server/src/com/vaadin/ui/CssLayout.java index 401eafe6e9..172258a5fe 100644 --- a/server/src/com/vaadin/ui/CssLayout.java +++ b/server/src/com/vaadin/ui/CssLayout.java @@ -228,6 +228,11 @@ public class CssLayout extends AbstractLayout implements LayoutClickNotifier { @Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); + + // This is an obsolete hack that was required before Map + // was supported. The workaround is to instead use a Map with + // the connector id as the key, but that can only be used once the + // connector has been attached. getState().childCss.clear(); for (Iterator ci = getComponentIterator(); ci.hasNext();) { Component child = ci.next();