Thank you for your reply.

I'm actually displaying it in a Tree widget, not on a HasData. I guess I'll 
load it dynamically while the user clicks through the nodes. Or load it all 
at once in a series of recursive requests, don't know yet.

On Tuesday, October 30, 2012 4:11:57 PM UTC+1, Alex opn wrote:
>
> Is there a way to load the entire tree with a single request in Request 
>> Factory?
>>
>
> No, there is not : / Although it would be nice and there was already an 
> open issue for it. (
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6697)
>  
> What you can do is use an async data provider if you show your tree 
> structure through a celltree or a cellbrowser. But that introduces other 
> problems. It's not that easy to refresh the data or traverse the tree to 
> open all nodes or similar things. I'd really like to provide an example for 
> an async data provider but don't have the time now.
>
> HTH
> opn
>
> Am Dienstag, 30. Oktober 2012 13:13:24 UTC+1 schrieb Tiago:
>>
>> Hello all,
>>
>> I found this topic through Google. I have a similar problem.
>>
>> I have a tree structure, with an arbitrary (dynamic) number of levels. 
>> Ex, an entity A which has a "children" relation which is a Set<A>.
>> Is there a way to load the entire tree with a single request in Request 
>> Factory?
>>
>> I can't use the solution proposed in this discussion 
>> (with("child.grandchild...")) because I don't know in advance how many 
>> levels the tree will have. All I know is that it's a tree (no cycles) and 
>> that I may assume it's small enough to be downloaded in a HTTP request and 
>> stored locally on the client, in memory.
>>
>> Thank you!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Z-B1nBhy58sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to