Author: liem_nguyen
Date: 2010-02-08 05:32:10 -0500 (Mon, 08 Feb 2010)
New Revision: 1553
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java
Log:
GTNPORTAL-601 Encountered an error and could not be displayed when delete tab of Dashbaord
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-02-08
10:09:43 UTC (rev 1552)
+++
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2010-02-08
10:32:10 UTC (rev 1553)
@@ -200,8 +200,11 @@
Page page = configService.getPage(pageRef);
if (page != null)
configService.remove(page);
+ UIPortal uiPortal = Util.getUIPortal();
+ // Remove from cache
+ uiPortal.setUIPage(pageRef, null);
}
- uiPortal.setSelectedNode(selectedNode);
+ //uiPortal.setSelectedNode(selectedNode);
configService.update(pageNavigation);
}
}
@@ -264,7 +267,7 @@
parentNode.getChildren().add(pageNode);
}
- uiPortal.setSelectedNode(pageNode);
+ //uiPortal.setSelectedNode(pageNode);
configService.create(page);
configService.update(pageNavigation);
@@ -425,7 +428,7 @@
return;
}
String uri = tabPane.createNewPageNode(newTabLabel);
-
+
//If new node is created with success, then redirect to it
if (uri != null)
{
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java 2010-02-08
10:09:43 UTC (rev 1552)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java 2010-02-08
10:32:10 UTC (rev 1553)
@@ -156,6 +156,7 @@
uiPage = createUIComponent(context, UIPage.class, null, null);
}
PortalDataMapper.toUIPage(uiPage, page);
+ uiPortal.setUIPage(page.getId(), uiPage);
return uiPage;
}
Show replies by date