wood burning stoves
The moose likes GWT and the fly likes Issue with ListBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Issue with ListBox" Watch "Issue with ListBox" New topic

Issue with ListBox

Serch Hdez
Ranch Hand

Joined: May 01, 2008
Posts: 43
I have an issue with a ListBox, it's a multiple selection list, and the first element is always selected, I have tried to put setSelectedIndex(-1) after the list has been added to the root panel and no luck. the google site says it's an issue but they don't provide another solution than the setSelectedIndex, so does anyone know what I can do to not having this problem?. I have GWT 1.5.3, regards.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10747

I have GWT 1.5.3

Try upgrading to the latest version.
If google says this is a known issue, most probably, it has been resolved in later versions.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Serch Hdez
Ranch Hand

Joined: May 01, 2008
Posts: 43
I tried to run my code using the newest jars out there, and found out I needed to make al of changes on the code, so right now it's not the solution for me. I was able to make the list not autoselect the first element, it's now selecting the very last one.. but I don't know what else I can do:

This will take the problem of having selected the first element but now the last one is the one selected . Anyone please help.
It is sorta covered in the JavaRanch Style Guide.
subject: Issue with ListBox
It's not a secret anymore!