Bob,

You can use the setCurrentPage method of your grid component.
myGrid.setCurrentPage(1)

- Jayson

bobheck wrote:
I am trying to do something that seems simple, but I am stumped.

The grid pager renders links that look like this to jump to a specific page

pagepath/pagename.grid.pager/NN

where NN is the page number the link jumps directly to

I have a large list, and I want users to be able to type a number in a
Textfield and then return the grid back with that number as the starting
page, rather than keep hitting links to get where they want.  Some data is
over 1000 pages and it takes many clicks.

You can jump to a specific page by typing the URL with the .grid.pager/NN
appended, but I have not found a way to do this programmatically.  I tried
returning the string of the relative url but got an Exception - Tapestry
does not like the .grid.pager/NN when returned as an Object from an
@OnEvent.

I do not wish to give a fully qualified path in the return, I want to use
relative/friendly urls.
Any help would be appreciated.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to