It's been a little while (so I may be entirely wrong...) but instead of
extending qx.core.Object, try extending from qx.ui.form.ListItem
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.ListItem
On 2015-07-13 10:28, Geissler, Martin wrote:
> Hello,
>
> My tinyurl did not work, so here is my code:
>
> qx.Class.define("my.kvp",
>
> {
>
> extend: qx.core.Object,
>
> properties:
>
> {
>
> key:
>
> {
>
> nullable: true
>
> },
>
> value:
>
> {
>
> nullable: true
>
> }
>
> }});
>
> var data = [];
>
> var obj = new my.kvp();
>
> obj.setValue("Hello");
>
> obj.setKey("1");
>
> var obj2 = new my.kvp();
>
> obj2.setValue("World");
>
> obj2.setKey("2");
>
> data.push(obj);
>
> data.push(obj2);
>
> var kvparray = new qx.data.Array(data);
>
> var selectBox = new qx.ui.form.SelectBox();
>
> var controller = new qx.data.controller.List(kvparray, selectBox, "value");
>
> this.getRoot().add(selectBox, { left : 50, top : 50});
>
> VON: Geissler, Martin [mailto:[email protected]]
> GESENDET: Montag, 13. Juli 2015 19:01
> AN: [email protected]
> BETREFF: [qooxdoo-devel] Fill Select Box via qx.data.controller.List with
> Array of qx.Objects looks empty
>
> Hello,
>
> I try to use the qx.data.controller.List to fill a Select Box with values
> from an Array of my handmade Qooxdoo Objects.
>
> But the resulting Select Box did not show the values as expected. It looks
> "empty"
>
> Please see my code on playground:
>
> HTTP://TINYURL.COM/LTMGF36 [1]
>
> What Did I miss?
>
> Thank you very much
>
> Kind regards
>
> Martin Geißler
>
> --
>
> [2]
>
> --
>
> P _BEVOR SIE DIESE E-MAIL AUSDRUCKEN, ÜBERLEGEN SIE BITTE, OB DIES WIRKLICH
> ERFORDERLICH IST. PLEASE THINK BEFORE YOU PRINT._
>
> --
>
> WIKA ALEXANDER WIEGAND SE & CO. KG, KLINGENBERG - GERMANY
> Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1819
> Komplementärin: WIKA Verwaltungs SE & Co. KG - Sitz Klingenberg - Amtsgericht
> Aschaffenburg HRA 4685
> Komplementärin: WIKA International SE - Sitz Klingenberg - Amtsgericht
> Aschaffenburg HRB 10505
> Vorstand: Alexander Wiegand - Vorsitzender des Aufsichtsrats: Dr. Max Egli
>
> --
>
> The information contained in this E-Mail and any attached files are strictly
> confidential and may be subject to legal privilege. If you are not the
> intended recipient, his representative or the person responsible for
> delivering the message to the intended recipient, be advised that you have
> received this message in error and that any dissemination, copying or use of
> this message or attachment is strictly forbidden, as is the disclosure of the
> information therein. If you have received this E-Mail in error, please notify
> us immediately by E-Mail or telephone and delete this message and all its
> attachments subsequently. All reasonable precautions have been taken to
> ensure no viruses are present in this E-Mail.
>
> --
>
> [2]
>
> --
>
> P _ BEVOR SIE DIESE E-MAIL AUSDRUCKEN, ÜBERLEGEN SIE BITTE, OB DIES WIRKLICH
> ERFORDERLICH IST. PLEASE THINK BEFORE YOU PRINT._ --
>
> WIKA ALEXANDER WIEGAND SE & CO. KG, KLINGENBERG - GERMANY
> Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1819
> Komplementärin: WIKA Verwaltungs SE & Co. KG - Sitz Klingenberg - Amtsgericht
> Aschaffenburg HRA 4685
> Komplementärin: WIKA International SE - Sitz Klingenberg - Amtsgericht
> Aschaffenburg HRB 10505
> Vorstand: Alexander Wiegand - Vorsitzender des Aufsichtsrats: Dr. Max Egli
>
> --
> The information contained in this E-Mail and any attached files are strictly
> confidential and may be subject to legal privilege. If you are not the
> intended recipient, his representative or the person responsible for
> delivering the message to the intended recipient, be advised that you have
> received this message in error and that any dissemination, copying or use of
> this message or attachment is strictly forbidden, as is the disclosure of the
> information therein. If you have received this E-Mail in error, please notify
> us immediately by E-Mail or telephone and delete this message and all its
> attachments subsequently. All reasonable precautions have been taken to
> ensure no viruses are present in this E-Mail.
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/ [3]
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel [4]
Links:
------
[1] http://tinyurl.com/ltmgf36
[2]
http://en-co.wika.de/a_10_en_co.WIKA?utm_campaign=E-Mail-Banner-EN-CO-2015&utm_source=EB-EN-CO-2015-27-A-10-BlockDesign&utm_medium=E-Mail-Banner
[3] https://www.gigenetcloud.com/
[4] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel