woprandi wrote
> Hi,
> 
> I have a form with 5 checkboxes and the corresponding controller. I'd like
> to listen when a checkbox value has changed  with a common code (only one
> generic event which i could get property name and new value instead of
> write 5 addListener(...)). But it seems not possible, am I right ?

I don't think it's that hard. I also had this <a href=&quot;http://&lt;a
id=&quot;nabblelink&quot;
href=&quot;http://qooxdoo.678.n2.nabble.com/How-to-listen-to-model-change-tp7586702.html&quot;>How
to listen to model change 
">question . 

So, what you could do is put all the models in an array and iterate over the
array adding a single event listener that in turn will raise the model
change event, in fact that is how I deal with this. You can then also
propagate the new and old data to the 'changeModel' dataevent.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Event-when-model-property-has-changed-in-Form-controller-tp7586764p7586765.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to