I am using qx.data.store.Json to retrieve data for lists in my program.
I already have two lists that are working, but today I added one more list,
and it doesn't work.
Here is what I am doing:
from Playlists.js:
this.controller.addListener("changeSelection", function(e){
var s = this.controller.getSelection();
if (s.length == 1) {
var li = s.getItem(0);
this.playlistView.setPlaylistId(li.getPlaylist().getId());
}
}, this);
from PlaylistView.js:
properties: {
playlistId: {
check: "Integer",
init: 0,
apply: "__applyPlaylistId"
}
},
members: {
__applyPlaylistId: function(value, old){
if (!this.store) {
// create the data store
this.store = new qx.data.store.Json();
SONG = this.store;
this.store.addListener("loaded", function(e){
this.list.setEnabled(true);
}, this);
// bind the status label
this.store.bind("state", this.status, "content");
this.store.bind("model", this.controller, "model");
}
this.store.setUrl("/dj/playlist_songs/" + value);
}
}
First the status label says "completed", then it says "timeout", and the
following exception gets thrown.
028276 qx.io.remote.RequestQueue[47]: Timeout: transport el
028276 qx.io.remote.RequestQueue[47]: 5001ms > 5000ms
028277 Timeout: implementation em
I checked the url from console, and then sent a qx.io.remote.Request(url,
"GET", "application/json") to that url. The request completed and retrieved
the data correctly.
I checked the Json code, and it seems that it does exactly what I did from
console.
But for some reason it doesn't work! I have been debugging this thing for
several hours, without any progress :(
--
View this message in context:
http://www.nabble.com/qx.data.store.Json-%22timeout%22%2C-while-qx.io.remote.Request-succeeds-tp24663380p24663380.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel