You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/18 19:55:25 UTC
[jira] Closed: (TAPESTRY-2263) Add a reset() method to the Grid
component to reset paging and sorting to initial defaults
[ https://issues.apache.org/jira/browse/TAPESTRY-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2263.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.12
> Add a reset() method to the Grid component to reset paging and sorting to initial defaults
> ------------------------------------------------------------------------------------------
>
> 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
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.12
>
>
> 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