but that will make it just an html object no way to make it back to a listbox?
On Mar 13, 2:18 pm, Velu <[email protected]> wrote: > Hopefully the solution below will help you. > > Create your list box once and - > > String listBoxHtmlString = yourListBox.toString(); > > Once you have the html string you can create as many number of HTML > objects out of that as needed. > > HTML listBoxHtml = new HTML(listBoxHtmlString); > yourWidget.add(listBoxHtml, left, top); > > However, I am not sure this is anymore efficient than creating as many > instances of the ListBox itself. > > Try it and let us know. > > Thanks > S. Velu > > On Mar 13, 1:04 pm, "[email protected]" <[email protected]> > wrote: > > > Just wondering is there any way to make clone of listbox where I would > > not have to readd all the values to a new listbox again. > > > For example my listbox is filled with like 100 items. > > > It will have to go though a loop to add them. I have more than one > > listbox so it would have to go though a loop to add them to the new > > listbox. > > > So is there any where where you can create one listbox and than make > > new listbox use the old lsitbox name/values --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
