]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #1190
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 26 Nov 2007 09:18:40 +0000 (09:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 26 Nov 2007 09:18:40 +0000 (09:18 +0000)
svn changeset:2939/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java

index 5671fa34fd04bd9a52c1303ce7056b34fab2b267..9e697a03cbd6cb0f893d82f3614e03f8c9b257dc 100755 (executable)
@@ -469,6 +469,14 @@ public class ApplicationConnection {
         // Visibility
         boolean visible = !uidl.getBooleanAttribute("invisible");
         component.setVisible(visible);
+        // Set captions
+        if (manageCaption) {
+            Container parent = getParentLayout(component);
+            if (parent != null) {
+                parent.updateCaption((Paintable) component, uidl);
+            }
+        }
+
         if (!visible) {
             return true;
         }
@@ -485,15 +493,6 @@ public class ApplicationConnection {
             }
         }
 
-        // Set captions
-        // TODO Manage Error messages
-        if (manageCaption) {
-            Container parent = getParentLayout(component);
-            if (parent != null) {
-                parent.updateCaption((Paintable) component, uidl);
-            }
-        }
-
         // Styles + disabled & readonly
         component.setStyleName(component.getStylePrimaryName());