portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r355350 - /portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
Date Fri, 09 Dec 2005 03:38:54 GMT
Author: taylor
Date: Thu Dec  8 19:38:53 2005
New Revision: 355350

URL: http://svn.apache.org/viewcvs?rev=355350&view=rev
Log:
its going to me or the treecontrol tonight
one of is going to win

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

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java?rev=355350&r1=355349&r2=355350&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
Thu Dec  8 19:38:53 2005
@@ -165,7 +165,7 @@
                             {
                                 if (parent.isLoaded() == false)
                                 {
-                                    loader.loadChildren(parentFolder, parent.getParent(),
request.getLocale());
+                                    loader.loadChildren(parentFolder, parent, request.getLocale());
                                 }
                                 else
                                 {
@@ -186,12 +186,16 @@
                             {
                                 if (parent.isLoaded() == false)
                                 {
-                                    loader.loadChildren(parentFolder, parent.getParent(),
request.getLocale());
+                                    System.out.println("before children " + parent.isLoaded());
+                                    loader.loadChildren(parentFolder, parent, request.getLocale());
+                                    System.out.println("after children " + parent.isLoaded());
                                   
                                 }
                                 else
                                 {
+                                    System.out.println("before add child " + parent.isLoaded());
                                                                                         
                 
                                     TreeControlNode childNode = loader.createPageNode(page,
request.getLocale(), "");
-                                    parent.addChild(childNode);                         
          
+                                    parent.addChild(childNode);
+                                    System.out.println("after add child " + parent.isLoaded());
                                                                       
                                 }
                             }
                         }                    
@@ -207,7 +211,7 @@
                             {
                                 if (parent.isLoaded() == false)
                                 {
-                                    loader.loadChildren(parentFolder, parent.getParent(),
request.getLocale());
+                                    loader.loadChildren(parentFolder, parent, request.getLocale());
                                 }                                
                                 else
                                 {



---------------------------------------------------------------------
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