[gatein-commits] gatein SVN: r5503 - exo/portal/branches/webos-gatein-branch/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Dec 8 04:42:39 EST 2010


Author: hoang_to
Date: 2010-12-08 04:42:38 -0500 (Wed, 08 Dec 2010)
New Revision: 5503

Modified:
   exo/portal/branches/webos-gatein-branch/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java
Log:
Use Class.forName method to create editted UIPage in EditCurrentPageActionListener, that is needed to fix the EditPage features in WebOS

Modified: exo/portal/branches/webos-gatein-branch/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java
===================================================================
--- exo/portal/branches/webos-gatein-branch/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java	2010-12-08 03:37:31 UTC (rev 5502)
+++ exo/portal/branches/webos-gatein-branch/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIMainActionListener.java	2010-12-08 09:42:38 UTC (rev 5503)
@@ -91,8 +91,8 @@
          uiApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
 
          // We clone the edited UIPage object, that is required for Abort action
-         //UIPage newUIPage = new UIPage();
-         UIPage newUIPage = uiWorkingWS.createUIComponent(UIPage.class, null, null);
+         Class<? extends UIPage> clazz = Class.forName(page.getFactoryId()).asSubclass(UIPage.class);
+         UIPage newUIPage = uiWorkingWS.createUIComponent(clazz, null, null);
          PortalDataMapper.toUIPage(newUIPage, page);
          uiToolPanel.setWorkingComponent(newUIPage);
 



More information about the gatein-commits mailing list