I'm trying to make my own model and I don't know how:
I've been looking here 
http://demo.qooxdoo.org/current/demobrowser/index.html?qxenv:demobrowser.withTests:true#data~ListControllerWithObjects.html
http://demo.qooxdoo.org/current/demobrowser/index.html?qxenv:demobrowser.withTests:true#data~ListControllerWithObjects.html
 
but I can only see:var person = new demobrowser.demo.data.model.Person();
but don't show where it comes from or how is made. So this tutorial is not
useful;

Why I want a custom model? (I want to have custom class just for the model,
to know the structure and to put custom methods in it)
I have: [{a: 2, b: 4}, {a: 1, b: 9}];
And I want to put it on a list, but using:
var model = this._model = new qx.data.Array([{id: 1, name: "Victor"}]);
this._listController = new qx.data.controller.List(model, this._list,
'name');
doesn't work: the real error is here: "Binding property " + propertyname + "
of object " + source + " not possible: No event available. " in
SingleValueBinding;
It cannot find the event.

The error in the console: Uncaught qx.core.AssertionError: error

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-create-my-own-model-I-cannot-find-tp7357709p7357709.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to