Author: mstruk
Date: 2012-03-06 05:54:42 -0500 (Tue, 06 Mar 2012)
New Revision: 8539
Modified:
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java
Log:
Bug 794399 - (JBEPP-1443) Able to name portlet with non-valid display name
Modified:
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java 2012-03-06
10:49:09 UTC (rev 8538)
+++
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIAddApplicationForm.java 2012-03-06
10:54:42 UTC (rev 8539)
@@ -48,6 +48,7 @@
import org.exoplatform.webui.form.UIFormSelectBox;
import org.exoplatform.webui.form.UIFormStringInput;
import org.exoplatform.webui.form.UIFormTableInputSet;
+import org.exoplatform.webui.form.validator.NotHTMLTagValidator;
import org.exoplatform.webui.form.validator.StringLengthValidator;
import org.gatein.common.i18n.LocalizedString;
import org.gatein.pc.api.Portlet;
@@ -83,7 +84,8 @@
public UIAddApplicationForm() throws Exception
{
- addUIFormInput(new UIFormStringInput(FIELD_NAME, null,
null).addValidator(StringLengthValidator.class, 3, 30));
+ addUIFormInput(new UIFormStringInput(FIELD_NAME, null,
null).addValidator(StringLengthValidator.class, 3, 30)
+ .addValidator(NotHTMLTagValidator.class));
List<SelectItemOption<String>> types = new
ArrayList<SelectItemOption<String>>(3);
types.add(new SelectItemOption<String>(ApplicationType.PORTLET.getName()));
types.add(new SelectItemOption<String>(ApplicationType.GADGET.getName()));
Show replies by date