You can add and remove rows of data by manipulating a model object that supports CellTable display.
ListDataProvider<OrderLineWeek> model = new ListDataProvider<OrderLineWeek>(); model.addDataDisplay(myCellTableInstance);
You can then access the list through model.getList() , but you must call model.refresh() or table.setRowCount(model.getList().size()) if you added or removed any rows.
Hope this helps.
source share