Update of 
/var/cvs/contributions/CMSContainer/cmsc/security/src/webapp/editors/usermanagement
In directory 
james.mmbase.org:/tmp/cvs-serv12038/cmsc/security/src/webapp/editors/usermanagement

Modified Files:
        user.jsp 
Log Message:
CMSC-929 Trying to add a user with a very long name (longer then 40 char) give 
a 500 error.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/security/src/webapp/editors/usermanagement
See also: http://www.mmbase.org/jira/browse/CMSC-929


Index: user.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/security/src/webapp/editors/usermanagement/user.jsp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- user.jsp    23 Oct 2007 09:40:08 -0000      1.11
+++ user.jsp    10 Apr 2009 08:29:47 -0000      1.12
@@ -17,7 +17,10 @@
                <div id="user">
                <table class="formcontent">
                        <tr>
-                               <td class="fieldname" width='180'><fmt:message 
key="user.account" /></td>
+            <td><fmt:message key="user.notice" /></td>
+         </tr>
+                       <tr>
+                               <td class="fieldname" width='180'><fmt:message 
key="user.account" />*</td>
                                <td>
                                        <logic:equal name="UserForm" 
property="id" value="-1">
                                                <html:text property="username" 
size='15' maxlength='15' />
@@ -30,43 +33,43 @@
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.firstname" /></td>
-                               <td><html:text property="firstname" size='30' 
/></td>
+                               <td><html:text property="firstname" size='30' 
maxlength='40' />&nbsp;&nbsp;<fmt:message key="user.textlength" /></td>
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.prefix" /></td>
-                               <td><html:text property="prefix" size='15' 
/></td>
+                               <td><html:text property="prefix" size='30' 
maxlength='40' />&nbsp;&nbsp;<fmt:message key="user.textlength" /></td>
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.surname" /></td>
-                               <td><html:text property="surname" size='30' 
/></td>
+                               <td><html:text property="surname" size='30' 
maxlength='40' />&nbsp;&nbsp;<fmt:message key="user.textlength" /></td>
                        </tr>
                        <tr>
-                               <td class="fieldname"><fmt:message 
key="user.email" /></td>
-                               <td><html:text property="email" size='30' />
+                               <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>
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.company" /></td>
-                               <td><html:text property="company" size='30' 
/></td>
+                               <td><html:text property="company" size='30' 
maxlength='40' />&nbsp;&nbsp;<fmt:message key="user.textlength" /></td>
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.department" /></td>
-                               <td><html:text property="department" size='30' 
/></td>
+                               <td><html:text property="department" size='30' 
maxlength='40' />&nbsp;&nbsp;<fmt:message key="user.textlength" /></td>
                        </tr>
                        <tr>
                                <td class="fieldname"><fmt:message 
key="user.note" /></td>
                                <td><html:textarea property="note" cols='60' 
rows='5' /></td>
                        </tr>
                        <tr>
-                               <td class="fieldname"><fmt:message 
key="user.password" /></td>
+                               <td class="fieldname"><fmt:message 
key="user.password" />*</td>
                                <td>
                                        <html:password property="password1" 
size='15' maxlength='15' />
                                        <span class="notvalid"><html:errors 
bundle="SECURITY" property="password1" /></span>
                                </td>
                        </tr>
                        <tr>
-                               <td class="fieldname" nowrap><fmt:message 
key="user.confirmpassword" /></td>
+                               <td class="fieldname" nowrap><fmt:message 
key="user.confirmpassword" />*</td>
                                <td>
                                        <html:password property="password2" 
size='15' maxlength='15' />
                                        <span class="notvalid"><html:errors 
bundle="SECURITY" property="password2" /></span>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to