Hello Ralf,
this behavior is not a big surprise for me. The form controller maps the
selected model of the select box to the form model. If you use the
controller, the selected model will be assigned corresponding to the models
in the model supplied to the list controller. 
As in your case, you added some list items which don't have their model
property set and this leads to null in the forms model and I guess to all
other wrong behavior. 

      gender.add( new qx.ui.form.ListItem( "male", null, "MALE" ) );
      gender.add( new qx.ui.form.ListItem( "female", null, "FEMALE" ) );

... fixes the whole problem and leads to "MALE" and "FEMALE" in the form
model. As you can guess, you can use any kind of object you want, even if
its an object or only a number.
Regards,
Martin
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Possible-bug-in-SelectBox-tp5296848p5296900.html
Sent from the qooxdoo mailing list archive at Nabble.com.

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