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