]> source.dussan.org Git - vaadin-framework.git/commitdiff
actions no more handled in "updates-disabled" block, fixes #3551
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 20 Oct 2009 05:36:37 +0000 (05:36 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 20 Oct 2009 05:36:37 +0000 (05:36 +0000)
svn changeset:9250/svn branch:6.2

src/com/vaadin/ui/Table.java

index a35572100fb1c732a4e485f4e393bf26fa6646ca..99e7cec3ded2bc2558b8b1d4360f6a837271689b 100644 (file)
@@ -1863,23 +1863,6 @@ public class Table extends AbstractSelect implements Action.Container,
             clientNeedsContentRefresh = true;
         }
 
-        // Actions
-        if (variables.containsKey("action")) {
-            final StringTokenizer st = new StringTokenizer((String) variables
-                    .get("action"), ",");
-            if (st.countTokens() == 2) {
-                final Object itemId = itemIdMapper.get(st.nextToken());
-                final Action action = (Action) actionMapper.get(st.nextToken());
-                if (action != null && containsId(itemId)
-                        && actionHandlers != null) {
-                    for (final Iterator<Handler> i = actionHandlers.iterator(); i
-                            .hasNext();) {
-                        (i.next()).handleAction(action, this, itemId);
-                    }
-                }
-            }
-        }
-
         if (!sortDisabled) {
             // Sorting
             boolean doSort = false;
@@ -1946,6 +1929,24 @@ public class Table extends AbstractSelect implements Action.Container,
         }
 
         enableContentRefreshing(clientNeedsContentRefresh);
+
+        // Actions
+        if (variables.containsKey("action")) {
+            final StringTokenizer st = new StringTokenizer((String) variables
+                    .get("action"), ",");
+            if (st.countTokens() == 2) {
+                final Object itemId = itemIdMapper.get(st.nextToken());
+                final Action action = (Action) actionMapper.get(st.nextToken());
+                if (action != null && containsId(itemId)
+                        && actionHandlers != null) {
+                    for (final Iterator<Handler> i = actionHandlers.iterator(); i
+                            .hasNext();) {
+                        (i.next()).handleAction(action, this, itemId);
+                    }
+                }
+            }
+        }
+
     }
 
     /**