After upgrading to Cuba ‘platform-6.5.4’ I started receiving this message when trying to populate a Table. This code was working in ‘platform-6.4.x’.
Error:
“Caused by: java.lang.UnsupportedOperationException: Changing datasource is not supported by the Table component”
Any ideas???
Sample Code:
private void populateTable(Map extras) {
extrasList.addAll(extrasDs.getItems());
extrasDs.clear();
extras.forEach((v,k)->{
Extras extra = new Extras();
extra.setName(v.toString());
extra.setDescription(v.toString());
extra.setActive(false);
BigDecimal amt = new BigDecimal((Double)k);
extra.setAmount(amt);
extrasDs.addItem(extra);
});
extrasTable.setDatasource(extrasDs);
}