Strange behaviour of CellList. Any help would be appreciated

17 views
Skip to first unread message

Ernesto Oltra

unread,
Jul 5, 2011, 6:03:42 PM7/5/11
to google-we...@googlegroups.com
Two CellLists I've implemented have an starnge behaviour: they don't load more than 25 results. Debugging my code, I found ListDataProvider says it has 40 results (or more ...) but still only showing 25. The results are loaded, added to the list, but never seen.

I load 4 results in each AJAX call, so it does 8 successful insertions, and the 9th fails. Tested with 10 results, 2 success, the 3rd failed.

Tested in hosted mode and with compiled code.

    final RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, URL_HERE);
    JSONResponseHandler handler = new JSONResponseHandler() {
      @Override
      protected void onComplete(boolean success, JSONValue data) {
        if(!success) return;
        
        // Process JSON here to extract data

       List<CommentData> providerList = dataProvider.getList();
       for(int i = 0; i < list.size(); i++) {
          // CommentData is a plain object that only stores data         
          providerList.add(new CommentData(id, body, sent, author, authorName));
        }
      }
    };

Any help would be appreciated

Ernesto Oltra

unread,
Jul 5, 2011, 6:47:17 PM7/5/11
to google-we...@googlegroups.com
-.-' Forgot to specify cellList.setPageSize(...). Solved.
Reply all
Reply to author
Forward
0 new messages