Author: tan_pham_dinh
Date: 2009-11-27 05:10:30 -0500 (Fri, 27 Nov 2009)
New Revision: 832
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
Log:
GTNPORTAL-282: In PageCreationWizard still create page at level 2
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2009-11-27
09:34:05 UTC (rev 831)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2009-11-27
10:10:30 UTC (rev 832)
@@ -78,7 +78,9 @@
setShowWelcomeComponent(false);
boolean isUserNav =
Util.getUIPortal().getSelectedNavigation().getOwnerType().equals(PortalConfig.USER_TYPE);
if (isUserNav)
+ {
uiPageInfo.getChild(UIPageNodeSelector.class).setRendered(false);
+ }
}
private void saveData() throws Exception
@@ -105,6 +107,8 @@
UIPageNodeSelector uiNodeSelector = uiPageInfo.getChild(UIPageNodeSelector.class);
PageNode selectedNode = uiNodeSelector.getSelectedPageNode();
PageNavigation pageNav = uiNodeSelector.getSelectedNavigation();
+ if (PortalConfig.USER_TYPE.equals(pageNav.getOwnerType()))
+ selectedNode = null;
Page page = (Page)PortalDataMapper.buildModelObject(uiPage);
PageNode pageNode = uiPageInfo.getPageNode();
Show replies by date