Hi,

I have two questions, mainly about the list controller.

1) First, does the removeAllBindings() work for data arrays that are bound
to a UI element such as a selectbox?

The following code for example throws an error:

            var listController = new
qx.data.controller.List(this.getFonts(), object.fontList);

            this.getFonts().removeAllBindings();
            listController.setTarget(null);
            this.getFonts().removeAll();

It fails on the last line with: this.getTarget() is null
This is due to the binding, that somehow was not removed by

            this.getFonts().removeAllBindings();

Is that a bug? Or is there a different way to remove bindings for a list?

2) I have an object that has a List (a data array). How can I set data
binding for the list (via a list controller), to a SelectBox for instance,
but which would also work when the object change? Eg, I want that the list
be always up to date with respect to the current object list. Either the
object or the list may change.

I have no idea on how to do that. With simple object controller, deep
binding works (eg, any change in the property chain will work), but I am not
sure how to achieve that with a list.

Thanks,
Jean-Noel

PS: after a bit of porting and adjustment, let me congratulate the whole
team about Qx 0.8.3. It is a big step forward and not only for the bug
fixing: I like the new APIs much better (more consistent).
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to