>
> Hi Willy,
>
> Yes, you can have labelPath be null in the constructor, but then the
> model must also be null at that time:
>
> var listData = new qx.ui.form.List;
> var ctrlList = new qx.data.controller.List(null, listData);
> ctrlList.setLabelPath("name");
> ctrlList.setModel(peopleData);
>
> If you set the model but no labelPath, the controller won't be able to
> correctly find the label for the list items, which causes the error you
> were seeing. You can also reproduce that error by swapping the
> setLabelPath and setModel lines in my example.
Hi
thanks for the quick response an for the rule. I was playing around but
couldn't get a clear pattern to do it.
> Personally, I like to fully configure the controller (label paths, icon
> paths, delegates, etc...) before setting the model. This also prevents
> the controller from doing needless updates on the list, every time
> something in its configuration changes.
cooooooool, this paragraph can be so helpful as well :-D
> I hope this helps.
sure mate!
connecting a bit with this one, I will need to access several parts of json
response in a random way. I was looking for css-like selectors for JSON and I
only found http://jsonselect.org/ (which seems to be fair). does qooxdoo
something alike that that one?
w i l l y
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel