Hello Christian,
i think you are mixing things up a bit. You are using two kinds of models,
the first one for populating the selectBox is a model containing a mix of
information: on part is the data model and the other part is the view model.
The data model part is that part you want to have in the form model (also a
data model) at the end and the view model part is not needed there. So maybe
you should just use the data model part as model and configure the view on a
different way?
Anyway, i opened a bug report for supporting options for the form
controller. (http://bugzilla.qooxdoo.org/show_bug.cgi?id=2822) With that it
is a easy task to supply your needs.
Best,
Martin


panyasan wrote:
> 
> Hi Martin,
> 
> 
> 
> MartinWittemann wrote:
>> 
>> Hello Christian,
>> 
>> what you are trying to achieve is kind of contradictory. With the list
>> controller, you are telling the ListItems that their models are the
>> objects in the ''model'' array. But with the form controller, you expect
>> the model to be a string. So you got to decide what you want to take as
>> model because the model selection only returns what is set as model.
>> 
> 
> You are right, it is contradictory, but only because the current design
> forces me to do that in this particular case. I respect your design
> choices, I just want to make clear that many people, at least I think,
> will have the same problem as me: you want to use a form that uses select
> boxes, you would like to use the form controller instead of rolling your
> own, and you want to combine this with a remote store as the source of the
> form data. This is where you get a problem, because you cannot use the
> remote data as a source for the form data. And it seems to me that it is
> not a "overburdening" of the form controller nor of the list controller to
> support this scenario. But that's only my opinion and suggestion - and I
> can always write my own implementation.
> 
> Cheers,
> 
> Christian 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-use-data-binding-for-a-SelectBox-which-is-intended-for-single-selection-tp3656721p3683905.html
Sent from the Q&A (solved) mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to