How can I delete a list of entity with RequestFactory?
InstanceRequest<List<XProxy>, Void> remove();
Of course, this is not working, because the first parameter has to be like this: P extends BaseProxy; but is there a similar way?
I want to delete the selected entities of my CellTable from the database. And I am using MultiSelectionModel, and CheckboxCell.
An
InstanceRequestmeans that the method is an instance method on the domain method for the first type argument (similar to looking for aremove()on aListin what you tried).You have to use a
Requestand pass theListas an argument to the method. The presence of a@ServiceLocatoron theRequestContextwill tell RequestFactory whether to look for a static or an instance method.