Hi,
The SelectBox control always wants to have at least one item selected at all
times, because the list which it creates has a selectionMode=="one"; the
disadvantage of this approach is that changeValue and changeSelected events
are fired as you add the first item to the list. This is kind of OK because
you can choose to add the event listeners after you have populated the field
(although when you _want_ the first item selected then your code never sees
the events get fired unless you fire them manually), but in a more complex
client/server app you're data binding may happen as a whole separate process
to the building of the form and you get unwanted selection events.
Just a suggestion, but could the SelectBox be made to not always select a
row, eg by changing the selectionMode of the list to "single" - or better,
have a selectionMode property of its own? We've derived our own SelectBox
and done that with success.
John
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel