Re: [qooxdoo-devel] Problem whith findValueExact

2007-09-20 Thread Dioc
Hello, Yes, in version 0.7.2 value for ListItem can be only a string because appropriate check was added to property declaration in ListItem class. It is not noticed in release notes and may lead to some hard-to-detect problems in existent applications (as it was in our case). In our application

Re: [qooxdoo-devel] Problem whith findValueExact

2007-09-20 Thread westor
Now in 0.7.2 it is only possible to have strings as incoming values for ListItems. Beware, this breaked my code at some lines, and I'm not very happy about this, too. Fabian, I can follow the arguments of Dioc. Is it planned to think about this again? Dioc wrote: > > A colleague of mine came ac

Re: [qooxdoo-devel] Problem whith findValueExact

2007-09-19 Thread Dioc
A colleague of mine came across the problem that is being discussed in this topic. We considered the problem and some questions were arisen. As said in the topic earlier, it would be useful to define ListItem's value of arbitrary type (for example, Date or Number) and have an opportunity to use me

Re: [qooxdoo-devel] Problem whith findValueExact

2007-08-15 Thread Fabian Jakobs
westor schrieb: > Sorry, Fabian, > > I'm not very close to the dephts of qooxdoo internals (but I'm working on > this ;-) ) - wouldn't it be better to let the user define values of types he > wants? For every widget? Why not have a widget or a function in the value > property? I often used setUserD

Re: [qooxdoo-devel] Problem whith findValueExact

2007-08-15 Thread westor
Sorry, Fabian, I'm not very close to the dephts of qooxdoo internals (but I'm working on this ;-) ) - wouldn't it be better to let the user define values of types he wants? For every widget? Why not have a widget or a function in the value property? I often used setUserData with arrays, functions

Re: [qooxdoo-devel] Problem whith findValueExact

2007-08-15 Thread Fabian Jakobs
westor schrieb: > qx.ui.form.List has a function findValueExact to retrieve a ListItem with a > specific value. > If you have a child item with a numeric value eg. > var item = new qx.ui.form.ListItem("something",null,100); > this function will crash, because there is a > "this.getValue().toLowerC

Re: [qooxdoo-devel] Problem whith findValueExact

2007-08-14 Thread Fabian Jakobs
westor schrieb: > qx.ui.form.List has a function findValueExact to retrieve a ListItem with a > specific value. > If you have a child item with a numeric value eg. > var item = new qx.ui.form.ListItem("something",null,100); > this function will crash, because there is a > "this.getValue().toLowerC

[qooxdoo-devel] Problem whith findValueExact

2007-08-14 Thread westor
qx.ui.form.List has a function findValueExact to retrieve a ListItem with a specific value. If you have a child item with a numeric value eg. var item = new qx.ui.form.ListItem("something",null,100); this function will crash, because there is a "this.getValue().toLowerCase" in the ListItem.js