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
>
>
>
------------------------------------------------------------------------
------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code  
> vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>


------------------------------------------------------------------------
------
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



------------------------------------------------------------------------------
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

Reply via email to