tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Zedlitz (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2263) reset() method for a Grid
Date Sat, 15 Mar 2008 16:30:31 GMT
reset() method for a Grid
-------------------------

                 Key: TAPESTRY-2263
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2263
             Project: Tapestry
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.0.10
            Reporter: Jesper Zedlitz


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.

It would be nice to have a reset() method on the Grid to start the new request on the first
page with a defined sort column.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message