WebMarkupContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
adding this behaviour directly to list view might not work. So the trick is to add list view in the WebMarkupContainer and apply ajax self updating time behaviour to that in a loop with the duration mentioned.
listContainer = new WebMarkupContainer(“listContainer”);
listContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(20)));
rowOrderListView = new OrderListView(“orderRow”, orderDataProvider);
listContainer.setOutputMarkupId(true);
listContainer.setOutputMarkupPlaceholderTag(true);
listContainer.add(rowOrderListView);