Hi guys,

I'm playing around with the CellTable and SimplePager from GWT 2.1 M2
and all is fine and dandy... besides one thing. The paging works great
but it doesn't work like me and my colleagues would like to. The
current setup behaves as follows, imagine I have a dataset of five
rows and a page size of two. The first page shows rows one and two,
the second page shows rows three and four (all great!), the third
page, however, show row four and five (it repeats row four).

I would like the above last page to only show the fifth row and also
fill up the rest of the table to keep the pager element below the
table in its place.

I thought of sub-classing the SimplePager's and change its paging
behavior. I did this by overriding the setPageStart() and make sure
the starting index is always correct. This works fine but when using
this the CellTable gets and ArrayIndexOutOfBoundsException as it adds
up the startIndex and the pageSize. I would think this is a bug but
decided to post it here first. What do you guys think? A bug? Or do
you have any tips of how to get the behavior I want? Maybe I'm
overlooking something.

PS I'm looking into overriding some of the methods in CellTable as
well to enable my desired behavior but expect this to be non-trivial.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to