Hey,

thats because of the bidirectional binding you set up using the controller.

Take a look at this small example which demonstrates the same idea:

var model = qx.data.marshal.Json.createModel({a: [], b: []});

model.bind("a[0]", model, "b[0]");
model.bind("b[0]", model, "a[0]");

As the arrays does not have an mechanism to stop setting a value if it is 
already set, the setting of a invokes a setting of a and the setting of b 
invokes a setting of a. But this could be easily fixed by implementing such a 
feature. I opened a bug report for that:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=4106
Just add yourself as CC if you are interested in the progress of it. If you 
need a workaround, just don't use the bidirectional binding and set up a 
listener for one direction instead. In that listener, you can cancel the 
setting if it is already set.

Regards,
Martin

Am 22.09.2010 um 10:44 schrieb fahri:

> 
> Hi,
> 
> sorry, i have pressed the wrong button... The question is, why is not work
> with the array?
> 
> Thanks,
> Fahri
> -- 
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Problem-qx-data-controller-Object-qx-data-Array-and-qx-ui-form-TextField-tp5253843p5558159.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to