controller.createModel() changes form values

View: New views
2 Messages — Rating Filter:   Alert me  

controller.createModel() changes form values

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm creating a form. The form is generated dynamically based on a map which tells me the type of form objects to create, their current values, if a field is numeric then it also sets  min/max values (integers use a Spinner), etc. After creating the entire form, I then call

       var controller = new qx.data.controller.Form(null, form);
      var model = controller.createModel();

but the call to controller.createModel() alters the values I've set in the form. Is that a bug or intentional? If intentional, how do I get around it and retain the values I've set?

Thanks,

Derrell


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: controller.createModel() changes form values

by Martin Wittemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Derrell,

this behavior is not by design and it really sounds like a bug to me!
Therefore, I opened a bug for it:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=3015

Thanks for pointing that out,
Martin



Derrell Lipman wrote:

>
> I'm creating a form. The form is generated dynamically based on a map
> which
> tells me the type of form objects to create, their current values, if a
> field is numeric then it also sets  min/max values (integers use a
> Spinner),
> etc. After creating the entire form, I then call
>
>        var controller = new qx.data.controller.Form(null, form);
>       var model = controller.createModel();
>
> but the call to controller.createModel() alters the values I've set in the
> form. Is that a bug or intentional? If intentional, how do I get around it
> and retain the values I've set?
>
> Thanks,
>
> Derrell
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://n2.nabble.com/controller-createModel-changes-form-values-tp3929163p3930397.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel