All works fine, the edited data are written to my list of beans (items).
BUT: I would like to persist it also to the database. How can I …
variant: … find out, which beans (items) have been changed/inserted/deleted by the grid? I would like to create a “Save Grid Data”-Button and this shouldn’t persist beans (items), that haven’t been changed.
variant: … trigger persistence into the database just after changing/inserting/deleting a bean (item)?
But I’ve now solved it with a solution for variant 1:
I’ve written a Setter wrapper, which is a nested class of my CustomGrid. This setter has to be used in the binding. It adds the edited beans to a global HashSet of the CustomGrid: