Hi all,

I am trying to populate a tree with asynchronous calls to a remote
object. (I.E. each request for children of a node causes a remote call
to get the children).

The issue that I'm running into is that even before opening a tree
node, all the children are being fetched. (call to
DataDescriptor.getChildren() is happening even before opening the node.)

My basic approach has been: maintain static metadata about the
different nodes in my tree so I know if it's a leaf/branch/etc. Use
this info in the DataDescriptor. 

For IDataDescriptor.isBranch, I ONLY look at the metadata. I don't
actually fetch the children remotely. My initial implementation of
IDataDescriptor.hasChildren was using getChildren() and if the count
was >1 then true. I changed this to be simply a call to
IDataDescriptor.isBranch() to avoid calling getChildren() until I
actually needed to fetch the children.

This has not worked though. It seems that the tree is calling
getChildren() on my nodes even before I open them. 

Am I missing something? Is there some way that I can work around this?

thanks,
Thunder




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to