Hi,

all you're missing is one crucial bit of information: Data binding works 
not just with properties, but with data events as well [1].
In this case, the qx.ui.form.IModelSelection interface included in the 
SelectBox defines a "changeModelSelection" event, which is what the data 
binding layer looks for if you configure a binding source named 
"modelSelection". Same thing for the TextField and its "changeValue" event.

[1] 
http://manual.qooxdoo.org/current/pages/data_binding/single_value_binding.html#binding-a-data-event-to-property

Regards,
Daniel

On 29.05.2013 07:54, wgw wrote:
> (noob question; sorry) I am trying to understand the demobrowser.data.Form
> (pertinent section below). I don't understand how "modelSelection[0]" could
> be a property of a SelectBox, or even how "value" is a property of the
> TextField. I do understand that there is a setValue method, so there must be
> a value property to set. And there is a getSelection method...but a
> modelSelection property? I'm not sure! I don't see any mention of a
> modelSelection property in the api viewer. I'm missing something!
>
> Does the api viewer tell me that SelectBox has a property "modelSelection"
> for the controller to target (see last lines below)?
>
>      // create a model
>        var modelSkeleton = {name: null, gender: null, ok: 0, hidden: "x"};
>        var model = qx.data.marshal.Json.createModel(modelSkeleton);
>
>        // create the controller
>        var controller = new qx.data.controller.Object(model);
>
>        // connect the name
>        controller.addTarget(nameTextfield, "value", "name", true);
>
>        // connect the select box
>        controller.addTarget(
>          genderSelectBox, "modelSelection[0]", "gender", true //,
> genderModel2Selection, genderSelection2Model
>        );
>
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/demobrowser-data-Form-example-are-controller-target-properties-in-the-api-viewer-tp7583765.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to