Hi Martin, The fix worked correctly but ever since the change to the form API, I've been having some issues with this. The original code was bound to the value property which is what was in the model. However, the new selection API uses the selection property which wants an array of Widgets instead of the value. I have thought that I might be able to get around this by using a converter but it seems to me like there might be a lot of almost identical code. Is this something of which you are aware?
I see that the demos have been updated to use the new form API but there are no demos which do what I am trying to do. I would appreciate any suggestions you might have as to how best approach this. Thanks Eric -----Original Message----- From: Martin Wittemann [mailto:[email protected]] Sent: Wednesday, May 06, 2009 3:11 AM To: qooxdoo Development Subject: Re: [qooxdoo-devel] Bidirectional binding with array element Hello Eric, looks like this is a bug in the single value binding. Thanks for the report! I have opened a bug for that issue: http://bugzilla.qooxdoo.org/show_bug.cgi?id=2339 In fact I already have fixed it. If SourceForge is back i'll commit it to the trunk. Best, Martin Am 05.05.2009 um 16:46 schrieb Dacquay, Eric: > Hi Martin, > > Here is the code which is causing the problem: > > this.__objectController.addTarget(this.__fieldInstances["category"], > "value", "category[" + (this.getPosition()-1) + "]", true); > > If I have the same line but I don't try to do a bidirectional mapping: > > this.__objectController.addTarget(this.__fieldInstances["category"], > "value", "category[" + (this.getPosition()-1) + "]", false); > > then I have no problems. However this also means that changes to the > control don't update the model. Let me know if you need anything else > but I don't think there is anything else relevant to this particular > issue. > > Thanks > > Eric > > -----Original Message----- > From: Martin Wittemann [mailto:[email protected]] > Sent: Tuesday, May 05, 2009 3:12 AM > To: qooxdoo Development > Subject: Re: [qooxdoo-devel] Bidirectional binding with array element > > Hello Eric, > > sounds like a problem in the data binding itself. Could you pleas show > us the code you are using. Perhaps i can find the problem in the > binding or some workaround for wou with the specific code piece. > > Best, > Martin > > > Am 04.05.2009 um 18:20 schrieb Dacquay, Eric: > >> Hi, >> >> So far I've been able to use the data binding feature with relative >> ease. However, I am having some issues with the bidirectional >> mapping. >> I have an array which I am using to bind a particular element from >> the >> array to a control. This works fine in this direction where the >> array >> element sets the control value. However, when it tries to establish >> the >> reverse binding, it complains because it cannot find: >> >> target["set" + qx.lang.String.firstUp(lastProperty)](value); >> >> This is not completely surprising as it tries to generate a method >> name >> like setArray[0](value) which does not work. Does anyone have any >> suggestions as to how to get around this? The list controller is not >> appropriate in this case since I am not binding the array itself to >> the >> control, but only a single element. >> >> Thanks >> >> Eric >> ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
