Is pagination supported in GWT? Does GWT provide a GWT GUI element?
If you need table pagination, you can try the GWT Widget called "CellTable". It is a customizable table which supports pagination easily.
You can find more info here (javadoc page) : http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/CellTable.html
And this is an example of how use it: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable
As @caarlos0 mentioned, CellTable is a good start. You can also take a look of GWT SimplePager and AsyncDataProvider. Basically a SimplePager will be bind to a CellTable (or any Cell widget) and AsyncDataProvider. If there is a page change event fired (like user click next page), the onRangeChanged() will be called inside AsyncDataProvider, and you can customize the paging behavior in that function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With