Hi.

I'm populating  ListBox with 8000 items.

ListBox lb=new ListBox();
for(int i=0;i<8000;i++)
lb1.addItem(""+i);

RootPanel.get().add(lb1);


In my real project I have to add items from a big list of cities, but
anyway.
That takes 5 seconds on my developer machine, in hosted mode.
In IE is a wasting 15-20 seconds :(

Trying making some test, it result that with Safari is working very
good...slower than a second.
I have to develop for IE...unfortunately.


So, i've tried that:

String HtmlSelect="<select>";
for(int i=0;i<8000;i++)
HtmlSelect+="<option>"+i+"</option>";

HtmlSelect+="</select>";
HTML html=new HTML(HtmlSelect);
RootPanel.get().add(html);

But that give me slower result...

this is the same issue of 
http://code.google.com/p/google-web-toolkit/issues/detail?id=49

any faster solution?

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to