This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Issue with ListBox" Watch "Issue with ListBox" New topic
Author

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: 10172
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with ListBox
 
Similar Threads
Using Values in a List form one JSP to Another
Special List box
multi-selection list box
Max number of items in a listbox?
logic:iterate and onChange