summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-03-07 12:57:20 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-03-07 12:57:20 +0000
commit685bb6b2389b593566d73c1b495f15e733ea0e78 (patch)
tree9689186cb11d0344f8f9362c35a4e55229970dec /src
parentd748393202906f3468691ed975e4e6da647ae8f4 (diff)
downloadvaadin-framework-685bb6b2389b593566d73c1b495f15e733ea0e78.tar.gz
vaadin-framework-685bb6b2389b593566d73c1b495f15e733ea0e78.zip
not sending cache request if disabled
svn changeset:3997/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
index 7be62f03da..7b8563bc7e 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
@@ -608,18 +608,20 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
});
}
- DeferredCommand.addCommand(new Command() {
- public void execute() {
- if (totalRows - 1 > tBody.getLastRendered()) {
- // fetch cache rows
- rowRequestHandler
- .setReqFirstRow(tBody.getLastRendered() + 1);
- rowRequestHandler
- .setReqRows((int) (pageLength * CACHE_RATE));
- rowRequestHandler.deferRowFetch(1);
+ if (enabled) {
+ DeferredCommand.addCommand(new Command() {
+ public void execute() {
+ if (totalRows - 1 > tBody.getLastRendered()) {
+ // fetch cache rows
+ rowRequestHandler.setReqFirstRow(tBody
+ .getLastRendered() + 1);
+ rowRequestHandler
+ .setReqRows((int) (pageLength * CACHE_RATE));
+ rowRequestHandler.deferRowFetch(1);
+ }
}
- }
- });
+ });
+ }
initializedAndAttached = true;
}