Hi --
Can anyone provide an example for how to create an AsyncTreeNode using
the constructor that allows a JavaScriptObject representing the
children to be passed in (new in 2.0.6)? I'm unable to use a normal
TreeLoader due to SOP constraints and I'm trying to figure out if I
can make this work by somehow providing it with the JsArray of
children myself. I am hoping to be able to do this with a ScriptProxy
to my datasource, would this even be possible?
I am using the following code to initialize my AsyncTreeNode:
AsyncTreeNode internalRootNode = new AsyncTreeNode("Internal Access
Points", getAccessPointArray(), false);
public native JsArray getAccessPointArray() /*-{
return [{'id': 'int-acc-point-1', 'text': 'Internal Access
Point 1', 'leaf': true},
{'id': 'int-acc-point-2', 'text': 'Internal Access
Point 2', 'leaf': true},
{'id': 'int-acc-point-3', 'text': 'Internal Access
Point 3', 'leaf': true}];
}-*/;
However, when I run my app in hosted mode, I click on the node to
expand it and all I get is a loading image that never goes away.
Any help would be greatly appreciated!
- Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---