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 panyasan wrote: > > > Hello Martin, > > thank you for your quick reply. I would love to see this functionality as > soon as possible, so I vote for it -anyone else? This would make using > SelectBox-like widgets (also RadioGroup) so much easier to use with forms. > You bind the form to a model, and, just like TextField widgets, they show > the value that is in the model, and update the model when the selection > changes. Because I generate forms on-the-fly in my application, this would > enormously ease my work - as opposed to having to bind the selection > widgets > manually. > > But even the second option is not fully clear to me. It would entail a lot > of custom code, wouldn't it - storing the "value" in the "userData" (since > the 'value' property is still deprecated in the current trunk), and then > iterating over the ListItems to select the matching one? Or am I still not > getting the point. A short example would be wonderful. > > Thank you - as usual - for your great work on databinding - I have > completely rewritten my app in order to use it ;-) > > Christian > > > > Martin Wittemann wrote: >> >> >> Hello Christian, >> thats a good point. The form controller still uses the selection for >> widgets >> like the SelectBox. But it could use the new model property now if >> available. Maybe I can get the code changed today and it will land in the >> 0.8.3 release. (http://bugzilla.qooxdoo.org/show_bug.cgi?id=2754) >> But anyway, you can always set up the binding yourself without the form >> controller and bind the model. Take a look at this tread some time ago >> where >> I bound a RadioGroup. As SelectBox and RadioGroup do use the same >> interface >> you can just use that code if you need it. >> Best, >> Martin >> >> >> >> panyasan wrote: >>> >>> >>> Hello (Martin), >>> >>> I have seen a couple of commits concerning the new selection support for >>> the >>> form and am eager to put it to use. But I couldn't yet figure out how to >>> do >>> it. >>> >>> Let's say, in a multi-language application, you have a SelectBox that >>> displays a couple of choices in the selected language of the >>> application. >>> The SelectBox is part of a form, managed by a form controller, which >>> bind >>> the form to a model. The model contains a value for the selected item in >>> the >>> select box which is language-neutral. How do I have to set up the >>> SelectBox >>> that the model, when changed, will automatically preselect the >>> corresponding >>> item in the SelectBox? As said before, binding to the label is not an >>> option >>> because the "value" has to be language-neutral - the label is >>> "decoration", >>> not "data". >>> >>> Thanks, >>> >>> Christian >>> -- >>> View this message in context: >>> http://www.nabble.com/New-Form-Selection-Behavior-tp25336649p25336649.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 >>> >>> >> >> -- >> View this message in context: >> http://n2.nabble.com/New-Form-Selection-Behavior-tp3599532p3601266.html >> Sent from the qooxdoo 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 >> >> > > -- > View this message in context: > http://www.nabble.com/New-Form-Selection-Behavior-tp25336649p25340929.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 > > -- View this message in context: http://n2.nabble.com/New-Form-Selection-Behavior-tp3599532p3601600.html Sent from the qooxdoo 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
