Author: raintang
Date: 2009-05-15 10:27:58 +0200 (Fri, 15 May 2009)
New Revision: 35180
Modified:
CMSContainer/trunk/CMSContainer/cmsc/security/src/java/com/finalist/cmsc/security/forms/ChangeProfileInforForm.java
CMSContainer/trunk/CMSContainer/cmsc/security/src/webapp/editors/usermanagement/changeprofileinfor.jsp
Log:
CMSC-596 More functionality in My Profile: change name, mail address,
notifications
Modified:
CMSContainer/trunk/CMSContainer/cmsc/security/src/java/com/finalist/cmsc/security/forms/ChangeProfileInforForm.java
===================================================================
---
CMSContainer/trunk/CMSContainer/cmsc/security/src/java/com/finalist/cmsc/security/forms/ChangeProfileInforForm.java
2009-05-15 08:16:27 UTC (rev 35179)
+++
CMSContainer/trunk/CMSContainer/cmsc/security/src/java/com/finalist/cmsc/security/forms/ChangeProfileInforForm.java
2009-05-15 08:27:58 UTC (rev 35180)
@@ -70,6 +70,9 @@
}
}
+ if (getEmail() == null || getEmail().length() == 0) {
+ errors.add("email", new ActionMessage("error.email.empty"));
+ }
return errors;
}
Modified:
CMSContainer/trunk/CMSContainer/cmsc/security/src/webapp/editors/usermanagement/changeprofileinfor.jsp
===================================================================
---
CMSContainer/trunk/CMSContainer/cmsc/security/src/webapp/editors/usermanagement/changeprofileinfor.jsp
2009-05-15 08:16:27 UTC (rev 35179)
+++
CMSContainer/trunk/CMSContainer/cmsc/security/src/webapp/editors/usermanagement/changeprofileinfor.jsp
2009-05-15 08:27:58 UTC (rev 35180)
@@ -32,6 +32,9 @@
<html:form action="/editors/usermanagement/ChangeProfileInforAction">
<table class="formcontent">
<tr>
+ <td><fmt:message key="user.notice" /></td>
+ </tr>
+ <tr>
<td class="fieldname" width='180'><fmt:message key="user.account"
/></td>
<td>
<bean:write name="ChangeProfileInforForm" property="username" />
@@ -50,7 +53,7 @@
<td><html:text property="surname" size='30' maxlength='40'
/> <fmt:message key="user.textlength" /></td>
</tr>
<tr>
- <td class="fieldname"><fmt:message key="user.email" /></td>
+ <td class="fieldname"><fmt:message key="user.email" />*</td>
<td><html:text property="email" size='30' maxlength='255' />
<span class="notvalid"><html:errors bundle="SECURITY"
property="email" /></span>
</td>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs