Author: liem_nguyen
Date: 2009-11-30 05:19:48 -0500 (Mon, 30 Nov 2009)
New Revision: 861
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
Log:
GTNPORTAL-262 Error URL when create new page
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-30
09:52:38 UTC (rev 860)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2009-11-30
10:19:48 UTC (rev 861)
@@ -389,6 +389,14 @@
uiWizard.updateUIPortal(uiPortalApp, event);
JavascriptManager jsManager = event.getRequestContext().getJavascriptManager();
jsManager.addJavascript("eXo.portal.portalMode=" +
UIPortalApplication.NORMAL_MODE + ";");
+
+ UIWizardPageSetInfo uiPageInfo = uiWizard.getChild(UIWizardPageSetInfo.class);
+ UIPageNodeSelector uiNodeSelector =
uiPageInfo.getChild(UIPageNodeSelector.class);
+ PageNode selectedNode = uiNodeSelector.getSelectedPageNode();
+
+ String uri = Util.getPortalRequestContext().getPortalURI() + "\\" +
selectedNode.getUri();
+ //Util.getPortalRequestContext().sendRedirect(uri);
+ jsManager.addJavascript("window.location = '" + uri +
"'");
}
}
Show replies by date