Hi,

I will probably not help you, but I can try to explain some things.
ListItem is also widget so you are interesting in it. There is no
value property in ListItem, but there is model property that has
exactly same function, so if you want to get database id or something
you can do it this way:

var item = new qx.ui.form.ListItem();
item.setModel("MyId");

...

var list = ... // your list
var sel = list.getSelection(); // selection

// detect if selection contains something
if (sel.length)
{
  var item = sel[0];
  alert(item.getModel()); // should alert MyId if it's our item
}

I think that most important for you is model property and it's what you need:)

-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

2009/10/21 JB <[email protected]>:
> How the heck to the get the value of the selected item?  That seems a
> little more complicated than it probably should be.  I'm scouring the
> documentation and not coming up with anything.  Where the heck is the
> selected value actually stored?
>
> Here is what I know already:
> SelectBox is derived from List and provides getSelection() which returns
> an array of type Widget.
>
> Here is what I do not quite understand:
> In the case of a SelectBox that would be what, an array with 1 element?
> Not sure why you would do that in the case of a derived SelectBox which
> can only ever have a single selection anyway but OK, so now you have a
> one element array containing a Widget object which again as far as I can
> tell from the documentation has no property or function with which to
> retrieve the actual value??
>
> Jared
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to