Author: ndkhoiits
Date: 2010-04-08 03:34:10 -0400 (Thu, 08 Apr 2010)
New Revision: 2529
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java
Log:
GTNPORTAL-1043
UIPage in UIPageBody didn't instance after create a new portal for edit inline. The
code add UIPage into UIPageBody was deleted by Trong Tran in revision 2519 because
it's processed in processRender, it's not good. I recommend to add this code into
UIMainActionListener's action
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java 2010-04-08
06:34:59 UTC (rev 2528)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java 2010-04-08
07:34:10 UTC (rev 2529)
@@ -160,6 +160,9 @@
newPortal.setSelectedNode(uiPortal.getSelectedNode());
newPortal.setSelectedNavigation(uiPortal.getSelectedNavigation());
newPortal.setSelectedPath(uiPortal.getSelectedPath());
+
+ // Get instance of UIPage
+ newPortal.getChild(UIPageBody.class).setPageBody(newPortal.getSelectedNode(),
newPortal);
UIEditInlineWorkspace uiEditWS =
uiWorkingWS.getChild(UIEditInlineWorkspace.class);
uiEditWS.setUIComponent(newPortal);
Show replies by date