]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #2259 - Do not update cached TabSheet
authorArtur Signell <artur.signell@itmill.com>
Tue, 2 Dec 2008 10:01:48 +0000 (10:01 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 2 Dec 2008 10:01:48 +0000 (10:01 +0000)
svn changeset:6064/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetBase.java

index 2480a7efe46749355e6f100e55608c21ea5f55ae..06a6810fbb8c8e3d6aa42d55e574f7dcced6a524 100644 (file)
@@ -262,6 +262,9 @@ public class ITabsheet extends ITabsheetBase {
         rendering = true;
 
         super.updateFromUIDL(uidl, client);
+        if (cachedUpdate) {
+            return;
+        }
 
         // Add proper stylenames for all elements (easier to prevent unwanted
         // style inheritance)
index a5093a87976de39b942f1303be775b99ddd37477..0e4774dfc0452ff698f3f2179fcecb3b9992c348 100644 (file)
@@ -23,6 +23,7 @@ abstract class ITabsheetBase extends ComplexPanel implements Container {
     protected boolean disabled;
     protected boolean readonly;
     protected Set disabledTabKeys = new HashSet();
+    protected boolean cachedUpdate = false;
 
     public ITabsheetBase(String classname) {
         setElement(DOM.createDiv());
@@ -33,7 +34,8 @@ abstract class ITabsheetBase extends ComplexPanel implements Container {
         this.client = client;
 
         // Ensure correct implementation
-        if (client.updateComponent(this, uidl, true)) {
+        cachedUpdate = client.updateComponent(this, uidl, true);
+        if (cachedUpdate) {
             return;
         }