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.
------------------------------------------------------------------------------
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