Author: mwringe
Date: 2012-02-08 14:21:20 -0500 (Wed, 08 Feb 2012)
New Revision: 8413
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIApplicationForm.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
Log:
JBEPP-1386: remove restriction on the length of a gadget/portlets description. This
prevents problems when gadget/portlets are loaded into the server which already contain a
description beyond the default limit.
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIApplicationForm.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIApplicationForm.java 2012-02-07
15:56:36 UTC (rev 8412)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIApplicationForm.java 2012-02-08
19:21:20 UTC (rev 8413)
@@ -38,6 +38,7 @@
import org.exoplatform.webui.form.validator.NotHTMLTagValidator;
import org.exoplatform.webui.form.validator.MandatoryValidator;
import org.exoplatform.webui.form.validator.NameValidator;
+import org.exoplatform.webui.form.validator.NullFieldValidator;
import org.exoplatform.webui.form.validator.StringLengthValidator;
import java.util.Calendar;
@@ -64,7 +65,7 @@
addUIFormInput(new UIFormStringInput("displayName",
"displayName", null).addValidator(
StringLengthValidator.class, 3, 30).addValidator(NotHTMLTagValidator.class));
addUIFormInput(new UIFormTextAreaInput("description",
"description", null)
- .addValidator(StringLengthValidator.class, 0, 255)
+ .addValidator(NullFieldValidator.class)
.addValidator(NotHTMLTagValidator.class));
}
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2012-02-07
15:56:36 UTC (rev 8412)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2012-02-08
19:21:20 UTC (rev 8413)
@@ -49,6 +49,7 @@
import org.exoplatform.webui.form.validator.NotHTMLTagValidator;
import org.exoplatform.webui.form.validator.ExpressionValidator;
import org.exoplatform.webui.form.validator.MandatoryValidator;
+import org.exoplatform.webui.form.validator.NullFieldValidator;
import org.exoplatform.webui.form.validator.StringLengthValidator;
import org.exoplatform.webui.organization.UIListPermissionSelector;
import
org.exoplatform.webui.organization.UIListPermissionSelector.EmptyIteratorValidator;
@@ -108,8 +109,8 @@
new UIFormCheckBoxInput("showInfoBar", "showInfoBar",
false)).addUIFormInput(
new UIFormCheckBoxInput("showPortletMode",
"showPortletMode", false)).addUIFormInput(
new UIFormCheckBoxInput("showWindowState",
"showWindowState", false)).addUIFormInput(
- new UIFormTextAreaInput("description",
"description", null).addValidator(StringLengthValidator.class,
- 0, 255).addValidator(NotHTMLTagValidator.class,
"UIPortletForm.msg.InvalidPortletDescription"));
+ new UIFormTextAreaInput("description",
"description", null).addValidator(
+ NullFieldValidator.class).addValidator(NotHTMLTagValidator.class,
"UIPortletForm.msg.InvalidPortletDescription"));
addUIFormInput(uiSettingSet);
UIFormInputIconSelector uiIconSelector = new
UIFormInputIconSelector("Icon", "icon");
addUIFormInput(uiIconSelector);
Show replies by date