Hello, everybody!
I'm evaluating qooxdoo for a new project and while it is working
flawlessly, the databinding is really screwing me.
The problem is that I'm trying to bind an array of Json objects to a
list, but without success. Here is the code:
(the code in in the contructor of class that inherits from Widget)
------ CODE ------
this.base(arguments);
//this is how the server sends the data
var data = [{"name":"John", "age":26}, {"name":"Mary", "age":30}];
//here is the model
var model = new qx.data.Array(data);
//now, the list
var list = new qx.ui.form.List();
var controller = new qx.data.controller.List(data, list, "name"); //
<----- here is the problem!!!
//make everything visible
this._setLayout(new qx.ui.layout.Basic());
this._add(list);
------ END ------
Running this code, I can see only a blank(no widgets) page. If I press
F7 for the console, there's only one line
for "qx.core.Init: Load runtime", the lines with "Main runtime" and
"Finalize runtime" are not shown. There's no
error message either. Any ideas?
--
Rafael Ibraim
Oracle Database SQL Expert
Linux User Number: #537480
[email protected]
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel