Author: ndkhoiits
Date: 2010-05-09 23:36:37 -0400 (Sun, 09 May 2010)
New Revision: 3017
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UISiteManagement.java
Log:
GTNPORTAL-1069 However, set UIPage and UIPageBody for Portal is edited layout
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UISiteManagement.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UISiteManagement.java 2010-05-10
00:56:51 UTC (rev 3016)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UISiteManagement.java 2010-05-10
03:36:37 UTC (rev 3017)
@@ -307,16 +307,17 @@
PortalDataMapper.toUIPortal(editPortal, userConfig);
uiEditWS.setUIComponent(editPortal);
+ // Check if edit current portal
if (uiPortal.getName().equals(editPortal.getName()))
{
editPortal.setSelectedNode(uiPortal.getSelectedNode());
editPortal.setSelectedNavigation(uiPortal.getSelectedNavigation());
editPortal.setSelectedPath(uiPortal.getSelectedPath());
- editPortal.refreshUIPage();
UISiteBody siteBody =
uiWorkingWS.findFirstComponentOfType(UISiteBody.class);
siteBody.setUIComponent(null);
}
+ editPortal.refreshUIPage();
portalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_EDITTING_WS_ID);