Hey Christian,

would be good if you could supply a bug because im currently on vacation so i 
wont be working for the next two weeks. Therefore, a bug assigned to me will be 
addressed fore sure where i can't promise to catch all mails on the list during 
that time.

Best,
Martin


Am 17.10.2010 um 15:05 schrieb panyasan:

> 
> I have found what seems to be a bug, unfortunately I have no time to make a
> test case for the playground, might be able to do that later. Note to myself
> and maybe @Martin.
> 
> If the value in the form controller's model doesn't change from one model to
> the next, the select box item is reset, but not updated. 
> 
> Here's my (stripped down) code:
> 
> 
>      var selectBoxController1 = new
> qx.data.controller.List(null,mySelectBox,"label").set({
>        iconPath : "icon",
>      });
>      selectBoxController1.setDelegate({
>        bindItem : function(controller, item, id) {
>          controller.bindDefaultProperties(item, id);
>          controller.bindProperty("value", "model", null, item, id);
>        }
>      });   
>      form.add( mySelectBox, null, null, "organizationId" );
>      ....
> 
>      later I get data from the server
> 
>                var model = qx.data.marshal.Json.createModel(data);
>                myFormController.setModel( model );
> 
>                // hack needed to update the select box if the form model
> value hasn't changed
>                var organizationId = model.getOrganizationId();
>                model.setOrganizationId(0);
>                model.setOrganizationId(organizationId);
> 
> The hack stuff shouldn't be necessary. I hope I'll be able to make a test
> case and bug next week.
> 
> Thanks,
> Christian
> -- 
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Binding-a-select-box-with-a-complex-model-to-a-scalar-value-in-a-form-model-tp5617833p5644977.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to