Hi,
In de virtualComboBox class the following function is defined:
__convertValue : function(modelItem)
{
var labelOptions = this.getLabelOptions();
var formatter = this.getDefaultFormat();
var labelPath = this.getLabelPath();
var result = null;
if (labelPath != null) {
result = qx.data.SingleValueBinding.getValueFromObject(modelItem,
labelPath);
} else if (qx.lang.Type.isString(modelItem)) {
result = modelItem;
}
var converter = qx.util.Delegate.getMethod(labelOptions, "converter");
if (converter != null) {
* result = converter(result);*
}
if (result != null && formatter != null) {
result = formatter(qx.lang.String.stripTags(result));
}
return result;
}
},
It seems to me that in the converter the argument should be /modelItem/
instead of /result/. In the current situation the argument, /result/, is a
string or null, so you can only convert a string, something that is also
done by the formatter.
Is this a bug or do I misunderstand the meaning of the converter?
Thanks in advance.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/VirtualComboBox-converting-values-tp7580551.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel