portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r931571 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
Date Wed, 07 Apr 2010 14:44:04 GMT
Author: woonsan
Date: Wed Apr  7 14:44:04 2010
New Revision: 931571

URL: http://svn.apache.org/viewvc?rev=931571&view=rev
Log:
JS2-1175: Fixing the problem that cannot copy/move a node into the same node.
The current code has assumed that a folder has been selected before action. So, the simplest
solution is to select the default root node initially.

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java?rev=931571&r1=931570&r2=931571&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/site/PortalSiteManager.java
Wed Apr  7 14:44:04 2010
@@ -2799,6 +2799,11 @@ public class PortalSiteManager extends A
             };
             
             copyTree.getTreeState().expandNode(copyTreeNode);
+            
+            // Initially select the root node in the tree
+            copyTree.getTreeState().selectNode(rootNode, true);
+            setDocPath(((SiteTreeNode) rootNode.getUserObject()).getNodePath());
+            
             add(copyTree);
             add(copyForm);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message