Author: tan_pham_dinh
Date: 2009-11-23 04:52:08 -0500 (Mon, 23 Nov 2009)
New Revision: 757
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
Log:
GTNPORTAL-277: Problem when add tab, which has same name with a deleted tab, on dashboard
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 2009-11-23
08:38:37 UTC (rev 756)
+++
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2009-11-23
09:52:08 UTC (rev 757)
@@ -132,7 +132,6 @@
{
PageNode currentParent = selectedPath.get(selectedPath.size() - 2);
siblings = currentParent.getChildren();
-
}
return siblings;
}
@@ -172,6 +171,12 @@
nodes.remove(nodeIndex);
+ String pageRef = tobeRemoved.getPageReference();
+ if (pageRef != null && pageRef.length() > 0)
+ {
+ configService.remove(configService.getPage(pageRef));
+ }
+
if (tobeRemoved.getUri().equals(selectedNode.getUri()))
{
selectedNode = nodes.get(Math.max(0, nodeIndex - 1));
@@ -377,6 +382,7 @@
if (selectedNode != null)
{
PortalRequestContext prContext = Util.getPortalRequestContext();
+ prContext.setResponseComplete(true);
prContext.getResponse().sendRedirect(prContext.getPortalURI() +
selectedNode.getUri());
}
}
@@ -400,6 +406,7 @@
if (uri != null)
{
PortalRequestContext prContext = Util.getPortalRequestContext();
+ prContext.setResponseComplete(true);
prContext.getResponse().sendRedirect(prContext.getPortalURI() + uri);
}
}