On Tuesday, October 30, 2012 5:30:48 PM UTC+2, Tiago wrote:
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?Am Dienstag, 30. Oktober 2012 13:13:24 UTC+1 schrieb Tiago:
No, there is not : / Although it would be nice and there was already an open issue for it. (http://code.google.com/p/
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.
opnHello 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/-/q30kGhXqe64J.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.