File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes component for pager function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply Bookmark "component for pager function" Watch "component for pager function" New topic
Author

component for pager function

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
I am new to GWT, I want to know, how to use GWT to create a pager component with the following function:
jumping to a certain page like the following:
Showing 1 to 10 of 123 records < | >| 1 | 2 |....| 12 | 13

if user press on the number, can jump to that page, if press <, jump
to previous page,if press >, jump to next page.

any sample code or existing component can be downloaded?

thanks in advance.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8436

What GWT version are you using? Since 2.1, GWT has a built in component called SimplePager
Check out the demo (and the source code) here


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
Maneesh Godbole wrote:What GWT version are you using? Since 2.1, GWT has a built in component called SimplePager
Check out the demo (and the source code) here


yes, I know. but the simplePager can only allow next one page or go to the last page, it cannot jump to a certain page.
What I want is something like
<< | < | 1 | 2 | 3 | ... | 100 | 101 | 102 | > | >>

the user can jump to a certain page directly, and if the page number is too much, can show as ... in the middle.

I think standard GWT has not built in component for the pager function, but I want if there is some user which already customize the SimplePager to
fullfit the above requirement, I think the above pager function is commonly seen in website.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: component for pager function
 
Similar Threads
action method not invoked
Displaying 1-9 using pager taglib
Options in drop-down menu
pagination problem
Query on Grid style data binding