Hi,

I'm facing a weird qx.data.store.Json behaviour. When I try to load the
local.json (the same with the sample at qooxdoo's demos) file from a
webserver, the state stucks to "aborted". However, the model is created.

When I try to do the same with the following file:

{"remarkid" : 2, "topic":"test", "remarks" : [{"opened":"14/06/2011",
"icon":"ipqform/media-playback-stop.png",
                     "discussion": [
                         {"icon":"ipqform/mail-receive.png",
"message":"Question"},
                         {"icon":"ipqform/mail-reply-sender.png",
"message":"Answer"}
                          ]},
             {"opened":"24/06/2011",
"icon":"ipqform/media-playback-start.png",
                     "discussion": [
                               {"icon":"ipqform/mail-receive.png",
"message":"Another question"},
                                {"icon":"ipqform/mail-reply-sender.png",
"message":"Another answer"}
                                   ]}
        ]}

the state stucks also to "aborted", but the model is created and the
following code

var listRemarks = new qx.ui.form.List();
               var store = new qx.data.store.Json(this.getSrcAddress());
var remarksController = new qx.data.controller.List(null, listRemarks);
store.bind("model.remarks", remarksController, "model");
remarksController.setLabelPath("opened");
remarksController.setIconPath("icon");

fills the listRemarks list items normally. Do you have any idea why the
final state remains "aborted"?

Hm, sounds strange. I have never seen that and just checked our demos online 
[1] [2] which use the store and reflect the state. Seems to work pretty fine.
In general, the store's state property only forwards the requests state 
property. Have you checked that already?
Maybe you can build an example in the playground to give us a chance to 
reproduce the thing and come up with a explanation or even better, a fix for 
that possible issue.

Regards,
Martin

[1] http://demo.qooxdoo.org/devel/demobrowser/#data~JsonToList.html
[2] http://demo.qooxdoo.org/devel/demobrowser/#data~JsonToTree.html
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to