Hello Martin

I have the same case. The model isn't updated from the view, the checkbox
list, due to single value binding.

What would be the best solution to keep the model and view synchronized and
has anything changed in this regard ?

Regards,
Piotr 


Martin Wittemann wrote:
> 
> Hello Will,
> 
> as i read your mail i thought its an easy one. I hat the reason why  
> its not working immediately in my mind. This behavior can be explained  
> by the idea of the single value binding which is always in one  
> direction. The controller.bindProperty method call in the delegate  
> uses the single value binding so the binding is also only in one  
> direction, from the model to the view. So far to why is it not working.
> The question on how to get it working is not that easy. I thought it  
> is but it isn't. In fact its currently not possible at all which is a  
> big problem! I have put this topic on my todo list for the data  
> binding controllers. Its really important to have it as soon a s  
> possible in the framework.
> Thanks for the hint!
> 
> Regards,
> Martin
> 
> 
> Am 01.05.2009 um 12:24 schrieb Will Morton:
> 
>> Nice one, thanks... I thought that might be it, but still no dice.
>>
>> In the meantime I have worked around it by creating a subclass of
>> checkbox and adding instances of it to the list, but I'd still like to
>> find out what I'm doing wrong with the controller.
>>
>> Cheers,
>>
>> Will
>>
>>
>> 2009/4/30 Derrell Lipman <[email protected]>:
>>> On Thu, Apr 30, 2009 at 12:13 PM, Will Morton <[email protected]>  
>>> wrote:
>>>>
>>>> /*** listtest/MyBean.js ***/
>>>>
>>>> qx.Class.define("listtest.MyBean", {
>>>>        extend: qx.core.Object,
>>>>        construct: function(name) {
>>>>                this.setName(name);
>>>>        },
>>>
>>> Will, I don't know if this is your only problem, but you are  
>>> forgetting to
>>> call the superclass constructor for qx.core.Object. Your  
>>> constructor should
>>> look like this:
>>>
>>>        construct: function(name) {
>>>                this.base(arguments);
>>>                this.setName(name);
>>>        },
>>>
>>> Derrell
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> 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
>>
>>
> 
> 
> ------------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-binding-objects-to-list-items-tp23320623p29307480.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to