Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

59726: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3)
      59493: MNT-10171: Merged DEV to V4.2-BUG-FIX 
       59289 : MNT-10171 : Exception thrown if Share metadata is longer than 1024 characters
        Set 'maxlength' attribute to 1024 (characters) for 'description' property in share and jsf client. 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 02:08:53 +00:00
parent ac3caf86a0
commit 538e468caf
2 changed files with 16 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ package org.alfresco.web.bean.generator;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.alfresco.model.ContentModel;
import org.alfresco.web.app.servlet.FacesHelper;
import org.alfresco.web.ui.common.ComponentConstants;
@@ -77,6 +78,13 @@ public class TextAreaGenerator extends TextFieldGenerator
component.getAttributes().put("rows", this.rows);
component.getAttributes().put("cols", this.columns);
// MNT-10171 Exception thrown if Share metadata is longer than 1024 characters
if (ContentModel.PROP_DESCRIPTION.getLocalName().equals(id))
{
// add 'onfocus' event for adding 'maxlength' attribute
component.getAttributes().put("onfocus", "addMaxLengthForDescriptionTextArea(this)");
}
return component;
}
}