Hi, Brian.

You can't traverse the project/folder tree like that on the client side. When 
you pull in a
project from the server, all of the child nodes are informational only. Even if 
the child is a
"project" or folder, the class type of the child node will still be something 
like ChildNode, not
Project. If you want to delve into the a child node that you know is a project, 
you'll have to
pull that project from the server using the getProjectObj() method. 

Let me know if any of that doesn't make sense to you.

--Rob


--- [EMAIL PROTECTED] wrote:

> Hello,
>           I am attempting to extend a class from the sourceJammer api and 
> I am running into an issue.  I am retrieving the nodes at the top level 
> but when I try to view any children ,using childCount() , I don't return 
> any values even though there are several children existing, is there 
> something I am missing?:
> 
>             sjInterface.setOut(System.out);
>             Project sjProject = 
> sjInterface.connect("nas01","http:localhost:80/sourcejammer/servlet/rpcrouter","anon","anon");
>  
>             System.out.println("Root Project: " + 
> sjProject.getNodeName());
>  
>             NodeList nodeList = sjProject.childList();
>             NodeIterator nodeIter = nodeList.getIterator();
>  
>             while(nodeIter.hasMoreNodes()){
>                      Node node = nodeIter.getNextNode();
>  
>              System.out.println("Node: " + node.getNodeName() + " 
> Children: " + node.childCount() + " Node: " + node);
>             }
>             sjInterface.disconnect();
> 
> 
> OUTPUT:
> 
> # Connected to archive nas01.
> Root Project: nas01
> Node: Iview-new Children: 0 Node: Iview-new       P 
> Node: legacy Children: 0 Node: legacy    P 
> Node: msrc Children: 0 Node: msrc 
> 
> Thanks,
>  Brian



                
__________________________________ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good. 
http://celebrity.mail.yahoo.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
SourceJammer-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sourcejammer-users

Reply via email to