]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add comment explaining why beforeClientResponse is used
authorLeif Åstrand <leif@vaadin.com>
Fri, 14 Sep 2012 11:52:53 +0000 (14:52 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 14 Sep 2012 11:53:47 +0000 (14:53 +0300)
server/src/com/vaadin/ui/CssLayout.java

index 401eafe6e9fb701f3b7f0829069f38d9f2c1d34b..172258a5fe119b321d9e434957bb6137d6a11ee5 100644 (file)
@@ -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<Conenctor, ?>
+        // was supported. The workaround is to instead use a Map<String, ?> with
+        // the connector id as the key, but that can only be used once the
+        // connector has been attached.
         getState().childCss.clear();
         for (Iterator<Component> ci = getComponentIterator(); ci.hasNext();) {
             Component child = ci.next();