aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 9995
    
    7

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
 
Similar Threads
Special List box
Max number of items in a listbox?
Using Values in a List form one JSP to Another
multi-selection list box
logic:iterate and onChange