Hello, yes thats the right way to use the changeBubble events for that. You want to get the changes of the model and sync those and not the changes of the controller. Imagine you have two views on the same model which means you have two controllers.
The proposal for a regexp like listener adding is a nice idea but i think its neither technically easy to implement nor performant if available. But maybe i just cant think of a way to implement it in a performant way. Regards, Martin Krycek wrote: > > Hi, > > You can create your model including bubble events: > http://demo.qooxdoo.org/devel/apiviewer/#qx.data.controller.Form~createModel<http://demo.qooxdoo.org/devel/apiviewer/#qx.data.controller.Form~createModel>Passing > "true" to that function. > Then you can add a listener like that: model.addListener("changeBubble", > function(e){}, this); // that gest called for every change > Martin said there is some issues concerning includeBubbleEvents, but I'm > using that and so far so good. > > But an idea crossed my mind right now, how difficult would it be to > support > regex in the event's names? To be able to do that: > obj.addListener("change*", function(e){}, this); > > On Wed, Sep 9, 2009 at 7:07 PM, panyasan <[email protected]> wrote: > >> >> >> >> Martin Wittemann wrote: >> > >> > >> > Hi, >> > no wonder you did not get it, i forgot to post the link to the thread. >> > Sorry >> > for that: >> > >> http://n2.nabble.com/RadioButtonGroup-and-ModelSelection-td3573156.html#a3573156 >> > >> > I am currently rewriting my tests to support the model so i think i can >> > get >> > it done today and it will be in the 0.8.3. :) >> > >> > Best, >> > Martin >> > >> >> Hi Martin, >> >> thanks, it works like a charm now, using a form, a form controller, and a >> data model. >> >> Next question: now I have a form and a model synchronized. I don't want >> to >> save the form as a whole, but detect the change of each field/model >> property >> and save each change individually. I couldn't find an event on the form >> object or the form controller which indicates a change in the form >> values. >> I >> cannot use individual change events on the model since I don't want to >> have >> to set up event listeners for each of the potentially huge number of >> properties. >> >> Did I overlook something or, if not, can a "change" event be added to the >> form / form controller, which dispatches a data event containing the name >> of >> the field that has changed? >> >> Thanks, >> >> Christian >> >> -- >> View this message in context: >> http://www.nabble.com/New-Form-Selection-Behavior-tp25336649p25373958.html >> Sent from the qooxdoo-devel mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://n2.nabble.com/New-Form-Selection-Behavior-tp3599532p3617536.html Sent from the Q&A mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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
