I am trying to use a SelectBox like this example (I am interested in the
grouped select box)
http://demo.qooxdoo.org/current/demobrowser/#virtual~SelectBox.html

My data looks like
[
 {
 name: {
   type: "literal"
   value: "John Doe"
 }
 user: {
   type: "uri"
   value: "John_Doe_URI"
 }
}
]

     var selectBox = new qx.ui.form.VirtualSelectBox();
     selectBox.setLabelPath("name.value");
  

     var url = "myurl";
     var store = new qx.data.store.Jsonp(url, null, "callback");
     store.bind("model", selectBox, "model");


Uncaught Error: Error in property model of class qx.ui.form.VirtualSelectBox
in method setModel with incoming value 'null': Null value is not allowed!

This error occurs in the "store.bind..." so I tried to put inside the
"loaded" event listener but it still doesn't work.

Any ideas?

Thanks.


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Loading-data-into-a-SelectBox-tp6344780p6344780.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to