Sorry, forget about "widget itself" of my previous e-mail. It should be part
of the list controller. Because It needs one list controller to each form.
That way I can have different "modelPath" for each form. And then the form
controller could use that "feature" with yours suggested
"valuePropertyChai".

It is just my suggestion but I agree with you that something alike should be
implemented. And if modelPath is set to null (default) it will return the
model item just like it returns today.

On Tue, Jul 20, 2010 at 2:04 PM, panyasan <[email protected]> wrote:

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

Reply via email to