Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread vp143
would not have been initialised if written as an inner class when creating the label. Please let me know if anyone finds a better way of writing it. Many thanks again Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator

Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread jcgarciam
of writing it. Many thanks again Vishal -- View message @ http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3035648.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4

Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread jcgarciam
-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3035648.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp

Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread Vishal Popat
Hi all, For some reason I cannot get the current page number. This is the relevant part of my code: PageableListView dataList = new PageableListView(dataList, results, 10) { protected void populateItem(ListItem item) { .. } }

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread jcgarciam
tell me what I have missed? Regards Vishal -- View message @ http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034524.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread Pedro Santos
Use an dinamic model, ex: Label currentPage = new Label(currentPage, new AbstractReadOnlyModelString() { public String getObject() { return pagination.getPageable().getCurrentPage(); } }); On Tue, Nov 9, 2010 at 2:04 PM, Vishal Popat

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread vp143
AjaxPagingNavigator are clicked on. Any thoughts? Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034840.html Sent from the Users forum mailing list archive at Nabble.com

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread Pedro Santos
.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034840.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org