protected void onPostProcessTarget(AjaxRequestTarget target) { referenceToReportListProvider.updateIt(conditions); }
On Fri, Oct 23, 2009 at 4:53 PM, Swarnim Ranjitkar <swarn...@hotmail.com>wrote: > > If I attach AjaxSelfUpdatingTimerBehavior to AjaxFallbackDefaultDataTable > should it refresh AjaxFallbackDefaultDataTable at the set interval. Is it > possible to refresh datatable every 10 sec using this. Looks like it > refreshes the datatable but it doesn't call ReportListProvider to refresh > the data before it refreshes the datatable. could you please let me know > what is the best way to do this. > > > final AjaxFallbackDefaultDataTable datatable = new > AjaxFallbackDefaultDataTable("listdatatable", columns, new > ReportListProvider("ABC", true), 8); > > datatable.add(new > AjaxSelfUpdatingTimerBehavior(Duration.seconds(10)) { > @Override > protected void onPostProcessTarget(AjaxRequestTarget > target) { > System.out.println("called"); > } > }); > thank you > > -- Pedro Henrique Oliveira dos Santos