δΊ 2012/12/14 15:58, antalk ει:
The onAction event will trigger a page-reload, as the currentpage parameter
is passed from the Grid to the Pager:
@Component(parameters =
{ "source=dataSource", "rowsPerPage=rowsPerPage",
"currentPage=currentPage", "zone=zone" })
private GridPager pager;
It will also be 'reflected back to the grid component' once it changes, as
the Grid component defines the parameter as 'persist':
@Persist
private Integer currentPage;
The next page reload will take the newly selected currentpage as starting
point.
Thanks a lot. I wasn't aware that the parameter binding is
bi-directional. it's really cool!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Help-me-to-understand-the-source-of-Grid-tp5718710p5718714.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org