It makes sense to have a separate instance, e.g. by the controller approach mentioned above, for each group of checkboxes. With this approach it would not be possible to extend two different groups of checkboxes with a "check-all" handler