[gatein-commits] gatein SVN: r825 - in portal/trunk: web/portal/src/main/webapp/WEB-INF/classes/locale/portal and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 26 23:00:25 EST 2009


Author: liem_nguyen
Date: 2009-11-26 23:00:25 -0500 (Thu, 26 Nov 2009)
New Revision: 825

Modified:
   portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboardContainer.java
   portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties
Log:
GTNPORTAL-215 TemplateRuntimeException (show message to inform the application may be deleted)

Modified: portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboardContainer.java
===================================================================
--- portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboardContainer.java	2009-11-27 03:12:05 UTC (rev 824)
+++ portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboardContainer.java	2009-11-27 04:00:25 UTC (rev 825)
@@ -30,6 +30,9 @@
 import org.exoplatform.portal.webui.application.UIPortlet;
 import org.exoplatform.portal.webui.container.UIContainer;
 import org.exoplatform.portal.webui.util.PortalDataMapper;
+import org.exoplatform.portal.webui.util.Util;
+import org.exoplatform.portal.webui.workspace.UIPortalApplication;
+import org.exoplatform.web.application.ApplicationMessage;
 import org.exoplatform.web.application.RequestContext;
 import org.exoplatform.webui.application.WebuiRequestContext;
 import org.exoplatform.webui.application.portlet.PortletRequestContext;
@@ -37,6 +40,7 @@
 import org.exoplatform.webui.config.Param;
 import org.exoplatform.webui.config.annotation.ComponentConfig;
 import org.exoplatform.webui.config.annotation.ParamConfig;
+import org.exoplatform.webui.core.UIApplication;
 import org.exoplatform.webui.core.UIComponent;
 import org.exoplatform.webui.core.model.SelectItemOption;
 import org.exoplatform.webui.event.Event;
@@ -483,6 +487,8 @@
          Application application = service.getApplication(objectId);
          if (application == null)
          {
+            UIApplication uiApplication = context.getUIApplication();
+            uiApplication.addMessage(new ApplicationMessage("UIDashboard.msg.ApplicationNotExisted", null));
             return;
          }
          UIGadget uiGadget = event.getSource().createUIComponent(context, UIGadget.class, null, null);

Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties	2009-11-27 03:12:05 UTC (rev 824)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties	2009-11-27 04:00:25 UTC (rev 825)
@@ -1260,6 +1260,7 @@
 UIDashboard.msg.required=The text field is required.
 UIDashboard.msg.addGadget=Drag your gadgets here.
 UIDashboard.msg.notUrl=The url is invalid. Please enter a correct url of a gadget xml or of an RSS feed.
+UIDashboard.msg.ApplicationNotExisted=This application is not exist or may be deleted.
 
   ################################################################################
   #		 org.exoplatform.webui.organization.account.UIUserSelector



More information about the gatein-commits mailing list