I found this post: Datagrid not writing to the database - #3 by pinyazhin but it seems only for DataGrid control, I was not able to do the same with a groupTable.
How can I persist the changes in the UI done from an editable groupTable?
Thanks
I found this post: Datagrid not writing to the database - #3 by pinyazhin but it seems only for DataGrid control, I was not able to do the same with a groupTable.
How can I persist the changes in the UI done from an editable groupTable?
Thanks
Hi,
This is quite simply implemented, via DataManager
and subscriptions to the ItemPropertyChangeEvent
container event
@Autowired
private DataManager dataManager;
@Subscribe(id = "newEntitiesDc", target = Target.DATA_CONTAINER)
public void onNewEntitiesDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<NewEntity> event) {
dataManager.save(event.getItem());
}