Hello Andreas,
sorry for the late answer. I have been sick last week and could not answer.
But now to your questions:


Andreas G. wrote:
> 
> 1. as you can see im using 2 list-controllers sharing one model which just
> apply filters for the related lists. when i update the model, say im
> changing a value, the controller-filters are not updated automatically.
> first i was planning to listen to changeBubble on the model but in some
> cases ( loops, for instance ) thats just not the right way. hence i call
> the update-method manually, if needed.
> 
Thats the current behavior of the filter. You have to take care of updating
the controller yourself. We made this step for a couple of reasons as far as
I can remember. One of it was performance. We don't want to update the
filter every time something could have changed.


Andreas G. wrote:
> 
> 2. i could find any functionality (like the "dataChanged" event in tables)
> to check if the model changed. is there any clean solution for that? 
> 
If you don't want to use the bubble event no. If you enable these events,
you can just listen to the changeBubble event of the data array named model
in your example.


Andreas G. wrote:
> 
> 3. i have to bind "widget.enabled <-> controller.model". the widget can be
> a button somewhere around and must be enabled if the model contains some
> entries. whats the right way to do that? seems its not enough just to bind
> the controller<->widget (+ converter).
> 
It depends on what the model is. If its a data array, you could [1] use the
length and a converter to bind it.

Regards,
Martin

-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/binding-related-stuff-tp5259603p5283160.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to