Re: Different paging behaviour for CellTable and SimplePager

2010-07-12 Thread DennisLaumen
Hi,

Overriding seems like a hard thing to do as CellTable depends on a
private final attribute of type CellListImplT for most of its logic.
It seems like the easiest way to implement the paging behavior
described in the above post would be to copy CellTable and change the
code here and there. Unfortunately, this wouldn't be a very elegant
solution, let alone maintainable as it appears these widgets are still
moving targets.

Can anyone offer me any tips? Maybe some Googlers with sage advice?

Regards,

Dennis Laumen

-- 
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.



Re: Different paging behaviour for CellTable and SimplePager

2010-07-12 Thread DennisLaumen
Ignore the above comments, I'm stupid and misinterpreted some
parameters.

-- 
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.



Different paging behaviour for CellTable and SimplePager

2010-07-08 Thread DennisLaumen
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.