Skip to content

Commit

Permalink
fixing bug #4920
Browse files Browse the repository at this point in the history
setting max length of field to 500 characters
  • Loading branch information
NicolasEYSSERIC committed Oct 30, 2013
1 parent c51fdc1 commit 7c57bff
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@
import com.silverpeas.form.FieldTemplate;
import com.silverpeas.form.FormException;
import com.silverpeas.form.RecordTemplate;
import com.silverpeas.form.fieldType.TextField;
import com.silverpeas.form.record.GenericFieldTemplate;
import com.stratelia.webactiv.util.ResourceLocator;

Expand Down Expand Up @@ -84,7 +85,7 @@ public FieldTemplate getFieldTemplate(String fieldName) throws FormException {
fieldTemplate.setDisplayerName("textarea");
fieldTemplate.setMandatory(true);
fieldTemplate.setReadOnly(readonly);

fieldTemplate.addParameter(TextField.PARAM_MAXLENGTH, "500");
return fieldTemplate;
}

Expand Down

0 comments on commit 7c57bff

Please sign in to comment.