Adding new people directly from people-management view.
Other way
Copied most of view from global-people-management. Another approach to add new person and make it selected.
Fix #1
Let's try another way
Maybe this way?
Managing selection with listeners instead of relying on DataTable
Reduced number of calling PersonEnrollPermissionService.prepareForEnroll to 1 per flow
Fixed unselecting
Adding new person and making it selected should work now.
Deleting should work now.
Forgot variables
Changed cascadeType to prevent deleting person from deleting enrolls associated with this person.
Try #2
Merge branch 'people-management'.
Flow for managing people allowed to enroll is fully functional. Deleting objects in ManyToMany relationships needs to be fixed either in model or DAO.