Am 05.07.2010 11:08, schrieb fahri:
> Hello,
>
> here I have the problem with the ListItem I need the values from the model
> in the array:
>
> var containerObject = {name  : "a", value: []};
>
> var model = qx.data.marshal.Json.createModel(containerObject, true);
> var controller = new qx.data.controller.Object(model);
> var editor = new qx.ui.form.SelectBox();
> editor.add(new qx.ui.form.ListItem("True", null, 1));
> editor.add(new qx.ui.form.ListItem("False", null, 0));
> controller.addTarget(editor, "value", "value[0]", true);
>
> this.getRoot().add(editor,{ top: 10, left: 10});
>
> Thanks
> Fahri
>    
Hi Fahri,

the SelectBox has no property value, please change it to the model 
selection:
controller.addTarget(editor, "modelSelection[0]", "value[0]", true);

Cheers,
Chris

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