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