Author: kien_nguyen
Date: 2010-06-17 05:58:36 -0400 (Thu, 17 Jun 2010)
New Revision: 3357
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java
Log:
GTNPORTAL-1325 Should validate First/Last name field is between 1-45 chars in user and
group management (change for Account Profile page)
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java 2010-06-17
09:46:57 UTC (rev 3356)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java 2010-06-17
09:58:36 UTC (rev 3357)
@@ -70,11 +70,9 @@
.addValidator(ResourceValidator.class).addValidator(ExpressionValidator.class,
Utils.USER_NAME_VALIDATOR_REGEX,
"ResourceValidator.msg.Invalid-char"));
addUIFormInput(new UIFormStringInput("firstName", "firstName",
useraccount.getFirstName()).addValidator(
- StringLengthValidator.class, 3,
45).addValidator(MandatoryValidator.class).addValidator(
- ExpressionValidator.class, Utils.FIRST_CHARACTER_NAME_VALIDATOR_REGEX,
"FirstCharacterNameValidator.msg"));
+ StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("lastName", "lastName",
useraccount.getLastName()).addValidator(
- StringLengthValidator.class, 3,
45).addValidator(MandatoryValidator.class).addValidator(
- ExpressionValidator.class, Utils.FIRST_CHARACTER_NAME_VALIDATOR_REGEX,
"FirstCharacterNameValidator.msg"));
+ StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("email", "email",
useraccount.getEmail()).addValidator(
MandatoryValidator.class).addValidator(EmailAddressValidator.class));
}
Show replies by date