diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-07 12:57:20 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-07 12:57:20 +0000 |
commit | 685bb6b2389b593566d73c1b495f15e733ea0e78 (patch) | |
tree | 9689186cb11d0344f8f9362c35a4e55229970dec /src | |
parent | d748393202906f3468691ed975e4e6da647ae8f4 (diff) | |
download | vaadin-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.java | 24 |
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; } |