[gatein-commits] gatein SVN: r3977 - portal/branches/branched-r3845/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Aug 31 06:18:44 EDT 2010


Author: phuong_vu
Date: 2010-08-31 06:18:43 -0400 (Tue, 31 Aug 2010)
New Revision: 3977

Modified:
   portal/branches/branched-r3845/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
Log:
GTNPORTAL-1440 Show gadget wrong after continue click Click here to add into categories link


Modified: portal/branches/branched-r3845/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
===================================================================
--- portal/branches/branched-r3845/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java	2010-08-31 10:12:53 UTC (rev 3976)
+++ portal/branches/branched-r3845/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java	2010-08-31 10:18:43 UTC (rev 3977)
@@ -1,5 +1,6 @@
 package org.exoplatform.applicationregistry.webui.component;
 
+import org.apache.shindig.gadgets.Gadget;
 import org.exoplatform.application.registry.Application;
 import org.exoplatform.application.registry.ApplicationCategory;
 import org.exoplatform.application.registry.ApplicationRegistryService;
@@ -142,7 +143,14 @@
          appInfo.getChild(UICategorySelector.class).setRendered(false);
          UIApplicationRegistryPortlet uiPortlet = appInfo.getAncestorOfType(UIApplicationRegistryPortlet.class);
          UIApplicationOrganizer uiOrganizer = uiPortlet.getChild(UIApplicationOrganizer.class);
+         UIGadgetManagement uiGadgetManagement = uiPortlet.getChild(UIGadgetManagement.class);
+
          uiOrganizer.reload();
+         if (uiGadgetManagement != null) 
+         {
+            uiGadgetManagement.setSelectedGadget(selector.getApplication().getApplicationName());
+         } 
+
          event.getRequestContext().addUIComponentToUpdateByAjax(appInfo);
       }
 



More information about the gatein-commits mailing list