Ticket #299 (closed defect: fixed)
Collection controls append data when setting wire value
|Reported by:||dd||Owned by:||mpo|
|Keywords:||collection control append||Cc:|
On collection controls, when setwirevalue is called more than once, the new data will not replace the old, but will instead be appended after the old. If for instance a collection had 3 children, and a setwirevalue is called with a jsonString with 2 children, the collection will now have 5 children instead of the expected 2.
This was also tested with kauri revision 1417, which does not contain this bug.
Easy way to see this : in the kauri samples, modify the file
collection-control.html.xml in the forms sample. Just double line
form1.setWireValue(data); (line 42)