confirmPassword.setEnabled(false);
confirmPassword.setVisible(false);
} else {
pwdQuestionMarkJexlHelp.setVisible(false);
password = new AjaxPasswordFieldPanel("password", "password",
new PropertyModel<String>(userTO, "password"));
password.setRequired(userTO.getId() == 0);
((PasswordTextField) password.getField()).setResetPassword(resetPassword);
confirmPassword = new AjaxPasswordFieldPanel("confirmPassword", "confirmPassword", new Model<String>());
if (!resetPassword) {
confirmPassword.getField().setModelObject(userTO.getPassword());
}
confirmPassword.setRequired(userTO.getId() == 0);
((PasswordTextField) confirmPassword.getField()).setResetPassword(resetPassword);