public FromListUserEdit(Page responsePage, IModel<User> userModel) {
super(responsePage, USER_PROFILE_PROPERTY_PREFIX, userModel);
}
protected void onSaveButtonSubmit() {
User user = getUser();
log.info("onSubmit: {}", user);
log.info("onSubmit (address): {}", user.getAddress());
try {
getUserManager().saveUser(user);
getSession().info(createDefaultInfoNotificationMessage(
new StringResourceModel("user.added", this, null, new Object[]{user.getFullName()})));
resolveAndSetResponsePage();
} catch (UserExistsException e) {
log.warn("User already exists", e);
error(new NotificationMessage(new StringResourceModel("errors.existing.user", this, null, new Object[] {
user.getUsername(), user.getEmail()})));
}
}