});
setOutputMarkupId(true);
form.add(layer = new DropDownChoice("layer", getLayerNames(rule.getWorkspace())));
layer.setOutputMarkupId(true);
form.add(accessMode = new DropDownChoice("accessMode", MODES, new AccessModeRenderer()));
form.add(rolesForComponent = new RolesFormComponent("roles", new RolesModel(rule), form,
true));
// build the submit/cancel
form.add(new BookmarkablePageLink("cancel", DataAccessRulePage.class));
form.add(saveLink());