Maybe it is a FAQ and I just did not know the good search terms to find the
solution...

I have a couple of lists with identification numbers. The lists contain
entries that are displayed using a Grid. The page ShowEntries has a method
onActivate(int id) to get the id from the request. A getEntries() method in
that page returns the entries. When I load the page the first time via
/myapp/showentries/1
these methods are invoked:
onActivate
getEntries
GridDataSource.getAvailableRows
GridDataSource.prepare  (entries 0-19, objects per page is 20)
GridDataSource.getAvailableRows (4x)
GridDataSource.getRowValue (n times)

on chaning to a different page of the table (the 3rd in this example)
onActivate
onActivate
getEntries
GridDataSource.getAvailableRows
GridDataSource.prepare 40-59
GridDataSource.getAvailableRows (4x)
GridDataSource.getRowValue (n times)

So far so good. Now I want to load a different list
/myapp/showentries/2
But the previous selected page of the table (and the sort column) is
displayed instead of the first page.

How do start the new request on the first page with a defined sort column?

Jesper

-- 
Jesper Zedlitz                   Dept. for Computer Science, CAU of Kiel
Room 1108                        Communication Systems Research Group
                                 Phone:    +49-(0)431-880-7279
Christian-Albrechts-Platz 4      Fax:      +49-(0)431-880-7615
24098 Kiel - Germany             [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to