Re: DataTable update components on Page Change

2013-05-12 Thread Francois Meillet
Hi David, With the event mechanism, you don't need to keep reference. Yours components keep loosely coupled. In the onPageChanged() method you can send an event like this send(getPage(), Broadcast.BREADTH, new YourEvent()); see the exemple: http://www.wicket-library.com/wicket-examples/events/

Re: DataTable update components on Page Change

2013-05-12 Thread David Beer
Hi Francois Thanks for your help, this useful in firing the event but how can I get it so that the buttons state is updated on the page. Sorry If I am missing something but am having trouble seeing how I can do this if I can't get hold of the AjaxRequestTarget. I am using wicket 6.6.0

Re: DataTable update components on Page Change

2013-05-12 Thread David Beer
Hi Francois Thanks for the pointers I have now solved this problem thanks again. David On 12/05/13 18:38, David Beer wrote: Hi Francois Thanks for your help, this useful in firing the event but how can I get it so that the buttons state is updated on the page. Sorry If I am missing

Re: DataTable update components on Page Change

2013-05-11 Thread Francois Meillet
You can use the event handling mechanism. François Meillet Formation Wicket - Développement Wicket Le 11 mai 2013 à 01:17, David Beer david.m.b...@gmail.com a écrit : Hi All I have an Ajax DataTable that extends DataTable and when I click the navigation panel to change page in the

Re: DataTable update components on Page Change

2013-05-11 Thread David Beer
Hi Francois Thanks for the reply I am not sure howfrom a reference to my table which Extends DataTable I can update the button when the onPageChanged() method is fired. My Table looks like the following. AJaxTableContact, String contacts = new AJaxTableContact, String(persons, columns, new