IModel<GeoServerRole> model = item.getModel();
item.add(new SimpleAjaxLink("role", model, RoleListProvider.ROLENAME.getModel(model)) {
@Override
protected void onClick(AjaxRequestTarget target) {
setResponsePage(
new EditRolePage(getSecurityManager().getActiveRoleService().getName(),
(GeoServerRole) getDefaultModelObject()).setReturnPage(this.getPage()));
}
});
}
});