{
add(new ButtonContainer("buttoncontainer", ButtonContainer.BUTTON_DEPARTMENTS));
SecureForm<Department> form =
new SecureForm<Department>("form", new CompoundPropertyModel<Department>(department));
// make sure we have organization rights
form.setSecurityCheck(new OrganizationCheck(form));
add(form);
// no need to secure the child components, the form will automatically
// disable them
// when required
form.add(new TextField<String>("name"));