oh ya colorfullist box is just a listbox where i have a background
color to the list. Just in case your wondering

On Mar 16, 9:30 am, "[email protected]" <[email protected]>
wrote:
> I also tried
>
>         HTML listBoxHtml = new HTML(mycolorliststring.get
> (threadtype));
>         Window.alert(listBoxHtml.getElement().getFirstChildElement
> ().getInnerHTML());
>         return ColorfulListBox.wrap(listBoxHtml.getElement
> ().getFirstChildElement());
>
> Error: uncaught exception: java.lang.IllegalStateException: Should
> only call onAttach when the widget is detached from the browser's
> document
>
> get that error too.
>
> On Mar 16, 9:16 am, "[email protected]" <[email protected]>
> wrote:
>
> > I just tried
>
> >         HTML listBoxHtml = new HTML(mycolorliststring.get
> > (threadtype));
> >         return ColorfulListBox.wrap(listBoxHtml.getElement());
>
> > but i get an error
>
> > On Mar 16, 8:20 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to