Hi.

This is what I can see in Opera's JS debugger (this.__periodicity is a 
SelectBox):

>>> this.__periodicity.getModelSelection()
Object[]
>>> this.__periodicity.getModelSelection().length
1
>>> this.__periodicity.getModelSelection()[0]
undefined
>>> this.__periodicity.getSelection()
Array[Object]
>>> this.__periodicity.getSelection()[0]
Object
>>> this.__periodicity.getSelection()[0].getModel()
"month"
>>>

The code to fill the options for the selectbox is:

this.__periodicity = new qx.ui.form.SelectBox();
this.__periodicity.add(new qx.ui.form.ListItem("", null, ""));
this.__periodicity.add(new qx.ui.form.ListItem("Months", null, "month"));
this.__periodicity.add(new qx.ui.form.ListItem("Years", null, "year"));

I would expect this.__periodicity.getSelection()[0].getModel() and 
this.__periodicity.getModelSelection()[0] to represent the same value. Am I 
missing something, or is this a bug?

br,

flj


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to