//TODO should throw exception if non admin User edit somebody else (or make all fields read-only)
add(passwordField = new PasswordTextField("password", new Model<String>()));
ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
passwordField.setRequired(false).add(minimumLength(getMinPasswdLength(cfgDao)));
SalutationDao salutDao = getBean(SalutationDao.class);
FieldLanguageDao langDao = getBean(FieldLanguageDao.class);
salutation = salutDao.get(getModelObject().getSalutations_id(), getLanguage());
lang = langDao.getFieldLanguageById(getModelObject().getLanguage_id());
add(new DropDownChoice<Salutation>("salutation"
, new PropertyModel<Salutation>(this, "salutation")
, salutDao.getUserSalutations(getLanguage())
, new ChoiceRenderer<Salutation>("label.value", "salutations_id"))
.add(new AjaxFormComponentUpdatingBehavior("onchange") {
private static final long serialVersionUID = -6748844721645465468L;
@Override