}
public UIAccountEditInputSet(String name) throws Exception
{
super(name);
addUIFormInput(new UIFormStringInput(USERNAME, "userName", null).setEditable(false).addValidator(
MandatoryValidator.class).addValidator(StringLengthValidator.class, 3, 30).addValidator(
ResourceValidator.class).addValidator(ExpressionValidator.class, Utils.USER_NAME_VALIDATOR_REGEX,
"ResourceValidator.msg.Invalid-char"));
addUIFormInput(new UIFormStringInput("firstName", "firstName", null).addValidator(
StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("lastName", "lastName", null).addValidator(
StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("email", "email", null).addValidator(MandatoryValidator.class).addValidator(
EmailAddressValidator.class));
UIFormCheckBoxInput<Boolean> uiCheckbox = new UIFormCheckBoxInput<Boolean>(CHANGEPASS, null, false);
uiCheckbox.setOnChange("ToggleChangePassword", "UIUserInfo");
addUIFormInput(uiCheckbox);
UIFormInputBase<String> uiInput =
new UIFormStringInput(PASSWORD1X, null, null).setType(UIFormStringInput.PASSWORD_TYPE).addValidator(
PasswordStringLengthValidator.class, 6, 30).addValidator(MandatoryValidator.class);
uiInput.setRendered(false);
addUIFormInput(uiInput);
uiInput =
new UIFormStringInput(PASSWORD2X, null, null).setType(UIFormStringInput.PASSWORD_TYPE).addValidator(
MandatoryValidator.class).addValidator(PasswordStringLengthValidator.class, 6, 30);
uiInput.setRendered(false);
addUIFormInput(uiInput);
}