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

Reply via email to