Author: tuancn
Date: 2010-01-14 03:29:09 -0500 (Thu, 14 Jan 2010)
New Revision: 1278
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
Log:
GTNPORTAL-404: the maximized portlet is still display after deleting the page
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
===================================================================
---
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2010-01-14
05:59:09 UTC (rev 1277)
+++
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2010-01-14
08:29:09 UTC (rev 1278)
@@ -25,6 +25,7 @@
import org.exoplatform.portal.config.model.PageNavigation;
import org.exoplatform.portal.config.model.PageNode;
import org.exoplatform.portal.config.model.PortalConfig;
+import org.exoplatform.portal.webui.page.UIPageBody;
import org.exoplatform.portal.webui.portal.UIPortal;
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.services.log.ExoLogger;
@@ -386,6 +387,13 @@
//If the node is removed successfully, then redirect to the node specified by
tab on the left
if (selectedNode != null)
{
+ // set maximizedUIComponent of UIPageBody is null if it is maximized portlet
of removed page
+ UIPortal uiPortal = Util.getUIPortal();
+ UIPageBody uiPageBody = uiPortal.findFirstComponentOfType(UIPageBody.class);
+ if(uiPageBody.getMaximizedUIComponent() != null){
+ uiPageBody.setMaximizedUIComponent(null);
+ }
+
PortalRequestContext prContext = Util.getPortalRequestContext();
prContext.setResponseComplete(true);
prContext.getResponse().sendRedirect(prContext.getPortalURI() +
selectedNode.getUri());
Show replies by date