Thanks! It works in this case, but it's a partial solution for my problem.

My items do not exist before creating the list, so using 

var data = qx.data.marshal.Json.createModel(rawData);

is not possible when rawData is empty (obvious because what model can you
create from null?!)

Using qx.data.Array gives that possibility (after all, it just creates an
internal empty array).

But here is the deal: combining your example with the qx.data.Array option I
get the following error:

"qx.core.AssertionError: error" in SingleValueBinding.js:545

I'm using list.setLabelPath("label") and my objects are constructed using:

rawData.push({
    label       : "" + Math.random()
});                     

I've tried also doing this in my class:

properties :
{
    label : {
        init : null,
        check : "String"
    }
}

Then using it to fill the array:

var item = new myClass();
item.setLabel("" + Math.random());
rawData.push(item);                     

So, the original problem remain: qx.ui.list.List cannot be used with (not so
or so) complex objects...

Regards,
Herman



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/ListItem-and-qx-ui-list-List-virtual-list-tp6242067p6244778.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to