//--------------------------------
//--------------------------------
// Roles panel
//--------------------------------
form.add(new RolesPanel("roles", userTO, mode == Mode.TEMPLATE));
//--------------------------------
final AjaxButton submit = getOnSubmit();
if (mode == Mode.ADMIN) {