I think this is a bug, but i'm not sure. I'm still very uncomfortable
with the intrinsics of all the databinding.

It seems as the databinding using a FormController doesn't work with a
SelectBox field, when the SelectBox field does not have a
ListController.
Not only that, but the SelectBox widget is actually broken: you have
to change it's value *twice* for it to register. And the model in the
form-controller isn't updated.

See this playground code:
  http://tinyurl.com/27y6mbh

It's has a small adaption from
http://demo.qooxdoo.org/current/demobrowser/#data~FormAndListController.html

Rather than:

   var gender = new qx.ui.form.SelectBox();
   //new qx.data.controller.List(model.getGender(), gender);

I do:

   var gender = new qx.ui.form.SelectBox();
   gender.add( new qx.ui.form.ListItem( "male" ) );
   gender.add( new qx.ui.form.ListItem( "female" ) );

It's easy to work around, but it's the sort of the bug, that is really confusing
I'm still trying to get a grip on the cool new form support.

-- Met vriendelijke groeten,
-- Ralf ( @ gong.nl // ******* )

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