Hi

I've just noticed an issue with the List widget

Here there are two exemples:
http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%22var%2520rawData%2520%253D%2520%255B%2522item1%2522%252C%2522item2%2522%255D%253B%250Avar%2520model%2520%253D%2520qx.data.marshal.Json.createModel(%2520rawData%2520)%253B%250Avar%2520list%2520%253D%2520new%2520qx.ui.list.List(model)%253B%250A%250Athis.getRoot().add(list%252C%2520%257Btop%253A10%252Cleft%253A10%257D)%253B%250A%250Avar%2520timer%2520%253D%2520new%2520qx.event.Timer(1000)%253B%250Atimer.addListener(%2522interval%2522%252Cfunction()%257B%250A%2520%2520rawData.push(%2522new%2520item%2522)%253B%250A%2520%2520var%2520model%2520%253D%2520qx.data.marshal.Json.createModel(%2520rawData%2520)%253B%250A%2520%2520list.setModel(model)%253B%250A%2520%2520%250A%257D%252Cthis)%253B%250Atimer.start()%253B%22%2C%20%22mode%22%3A%22ria%22%7D

and

http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%22var%2520rawData%2520%253D%2520%255B%257Blabel%253A%2522item1%2522%257D%252C%257Blabel%253A%2522item2%2522%257D%255D%253B%250Avar%2520model%2520%253D%2520qx.data.marshal.Json.createModel(%2520rawData%2520)%253B%250Avar%2520list%2520%253D%2520new%2520qx.ui.list.List(model)%253B%250Alist.setLabelPath(%2522label%2522)%253B%250Athis.getRoot().add(list%252C%2520%257Btop%253A10%252Cleft%253A10%257D)%253B%250A%250Avar%2520timer%2520%253D%2520new%2520qx.event.Timer(1000)%253B%250Atimer.addListener(%2522interval%2522%252Cfunction()%257B%250A%2520%2520rawData.push(%257Blabel%253A%2522new%2520item%2522%257D)%253B%250A%2520%2520var%2520model%2520%253D%2520qx.data.marshal.Json.createModel(%2520rawData%2520)%253B%250A%2520%2520list.setModel(model)%253B%250A%2520%2520%250A%257D%252Cthis)%253B%250Atimer.start()%253B%22%2C%20%22mode%22%3A%22ria%22%7D

If you select a list item, when the model gets updated, the selection
is keeped, but only if items of the models are strings.
If the model is made up of objects, the selection is loosed when the
model get updated.

To me it look like an issue, but i want to be sure it is an issue
before creating a bug report.

Regards
-- 
Benjamin Dreux
Analyste-Programmeur
Chaire de logiciel libre-Finance Social et solidaire
UQAM
Montréal

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to