qx.ui.form.ComboBox, how to take care of case ?

View: New views
2 Messages — Rating Filter:   Alert me  

qx.ui.form.ComboBox, how to take care of case ?

by Jean-Baptiste BRIAUD -- Novlog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using a ComboBox and here's the code very simple example that will  
be quicker to read than a long explanation :

var box = new qx.ui.form.ComboBox();

var item1 = new qx.ui.form.ListItem("Item 1");
box.add(item1);

var item2 = new qx.ui.form.ListItem("Item 2");
box.add(item2);

var doc = this.getRoot();
doc.add(box);

box.setValue("item 1");

Why can't I have "item 1" as a value ? The ComboBox display "Item  
1" (with capital I) without taking into account the case.

Any idea ? It is a bug ?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: qx.ui.form.ComboBox, how to take care of case ?

by Jonathan Weiß-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Jean-Baptiste,


I agree with you: the setValue() method of the ComboBox should be case
sensitive or at least offer an option to change this behavior. I have open a
bug using your information: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3024
As always, you can add yourself as CC to get informed when the bug gets
updated.

Cheers
Jonathan

-----
Jonathan Weiß
Framework Engineer

http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
--
View this message in context: http://n2.nabble.com/qx-ui-form-ComboBox-how-to-take-care-of-case-tp3937603p3939388.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel