I got rid of the recursion error with this patch:
### Eclipse Workspace Patch 1.0
#P qooxdoo-trunk
Index: framework/source/class/qx/data/controller/Form.js
===================================================================
--- framework/source/class/qx/data/controller/Form.js (revision 22747)
+++ framework/source/class/qx/data/controller/Form.js (working copy)
@@ -168,7 +168,11 @@
if (qx.Class.hasInterface(clazz, qx.ui.core.ISingleSelection))
{
// use the first element of the selection because passed to
the
// marshaler (and its single selection anyway) [BUG #3541]
- currentData[names[i]] =
items[name].getModelSelection().getItem(0) || null;
+ var item = items[name].getModelSelection().getItem(0) ||
null;
+ if( item instanceof qx.core.Object ) {
+ item = qx.util.Serializer.toNativeObject( item );
+ }
+ currentData[names[i]] = item;
} else {
currentData[names[i]] = items[name].getValue();
}
The problem seems to be that the "data" variable in line 189
var model = qx.data.marshal.Json.createModel(data, includeBubbleEvents);
contains an already marshalled object, which is then re-marshaled again,
creating a huge mess. But I wonder why this didn't happen before - I was
using the exact form...
Martin, do you think it would be possible to apply this patch?
Thanks,
Christian
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Databinding-problem-Creating-form-model-stopped-working-tp5314091p5317538.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel