Hey,
I openend up a bug report for that issue [1]. If you want to get rid of that
workaround, you should add yourself as CC to be up to date when it will be
fixed.
Thanks for the report and for posting the workaround,
Martin
[1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=4552
<http://bugzilla.qooxdoo.org/show_bug.cgi?id=4552>
Am 13.01.2011 um 22:26 schrieb Marco Pompili:
I've used a workaround because i cannot find the bug.
I've wrote this function:
objectToJson : function(object)
{
var keys = qx.lang.Object.getKeys(object);
var values = qx.lang.Object.getValues(object);
var json = '{';
for( var i = 0, l = qx.lang.Object.getLength(object); i < l; i++ )
{
if (values[i] != null)
json += '"'+keys[i]+'":"'+values[i]+'",';
else
json += '"'+keys[i]+'":null,';
}
json = json.substring(0, json.length - 1);
json += '}';
return json;
}
This function serialize a native javascript object so to use it with a model
do like this.
var obj = qx.util.Serializer.toNativeObject(this.custModel);
var json = this.objectToJson(obj);
I don't know if it is the best way to do it, but it works for now. I just
wanted to share with the community to also know if it's a good workaround or
not.
Thank you all
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Json-and-ComboBox-serializing-problem-tp5917906p5919791.html
Sent from the qooxdoo mailing list archive at Nabble.com<http://Nabble.com>.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel