[
http://issues.apache.org/jira/browse/TAPESTRY-1053?page=comments#action_12427382
]
Jun Tsai commented on TAPESTRY-1053:
------------------------------------
In dojo TreeLoadingController
loadProcessResponse: function(node, result, callObj, callFunc) {
.............
.............
var newChildren = result;
if (!dojo.lang.isArray(newChildren)) {
dojo.raise('loadProcessResponse: Not array loaded:
'+newChildren);
}
for(var i=0; i<newChildren.length; i++) {
// looks like dojo.widget.manager needs no special
"add" command
newChildren[i] =
dojo.widget.createWidget(node.widgetType, newChildren[i]);
node.addChild(newChildren[i]);
}
So I think the syntax should be
[{"title":"title","isFolder":"true"},{"title":"title","isFolder":"true"},{"title":"title","isFolder":"true"},{"title":"title","isFolder":"true"}]
> Can't use IJSONWriter to write a JSONArray object.
> --------------------------------------------------
>
> Key: TAPESTRY-1053
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1053
> Project: Tapestry
> Issue Type: Improvement
> Affects Versions: 4.1.1
> Reporter: Jun Tsai
>
> I want to write an array ({{x,x,x,x},{y,y,y,y}}) using IJSONWriter,I find I
> can't do it.
> I want to use JSONArray to create json string.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]