Author: tan_pham_dinh
Date: 2009-11-16 05:20:11 -0500 (Mon, 16 Nov 2009)
New Revision: 608
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java
Log:
GTNPORTAL-67: Change message when invalid with GadgetSpecValidator in UIGadgetEditor
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java 2009-11-16
09:57:14 UTC (rev 607)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java 2009-11-16
10:20:11 UTC (rev 608)
@@ -22,7 +22,6 @@
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.shindig.common.uri.Uri;
import org.apache.shindig.gadgets.spec.GadgetSpec;
-import org.apache.shindig.gadgets.spec.SpecParserException;
import org.exoplatform.application.gadget.Gadget;
import org.exoplatform.application.gadget.GadgetRegistryService;
import org.exoplatform.application.gadget.Source;
@@ -205,7 +204,7 @@
{
new GadgetSpec(Uri.parse("http://exoplatform.org"),
(String)uiInput.getValue());
}
- catch (SpecParserException se)
+ catch (Exception se)
{
throw new MessageException(new
ApplicationMessage("UIGadgetEditor.msg.invalidSpec", null,
ApplicationMessage.WARNING));
Show replies by date