Hi Omri,

Make sure you call "bindDefaultProperties" on the controller, inside the 
bindItem delegate.

Or, if you don't, you need to call bindProperty manually for all the 
standard properties (model, label, icon).

The manual has a brief mention [1] about this.

Regards,
Marc

[1] 
http://manual.qooxdoo.org/1.5.x/pages/data_binding/controller.html#binditem


> Hi,
>
> I'm experiencing some weird problem with data binding.
> I have a select box which is controlled via qx.data.controller.List. I want
> to set a converter function on the label of the item. If I create a delegate
> with the bindItem function, and there use the BindProperty function with a
> converter as an option, I always get a null model. On the other hand, if I
> try to simply set the labelOptions of the controller, it gets completely
> ignored.
>
> I must use the bindItem delegate because this select box is a part of a
> larger form which also has a form controller and I want to have the value of
> "model" in the list controller represent the selected value for the form.
> Hope this all makes sense.
>
> Any suggestions?
>
> Thanks,
> Omri
>
> P.S - I noticed this problem before, when I did a simpler binding, but the
> issue was resolved using the LabelOptions property. This time it doesn't
> work because I must use the bindItem delegate.
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Using-a-converter-within-a-bindItem-within-a-List-controller-problem-tp6702754p6702754.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to