Thanks Thomas. I will take a look. It seems to be quite involved but I should be able to figure out what's happening here.
On Friday, February 1, 2013 5:31:57 PM UTC-6, Thomas Broyer wrote: > > > > On Friday, February 1, 2013 11:11:49 PM UTC+1, BM wrote: >> >> Thanks Jens and Thomas! Appreciate your quick response. Always learning >> new in GWT! >> >> I am not sure the exact difference between ListBox and ValueListbox. >> > > ValueListBox produces the same DOM as ListBox but is "data oriented", a > bit more high-level. > > >> I can make a custom ListBox called WrappedListBox which extends ListBox >> and implements HasValue<String>. I think that is what you are referring >> here right? >> > > I was more referring to a class that implements HasValue and wraps a > ListBox (rather than extends ListBox). > > >> But I sometimes get confused that I have to inherit bunch of methods for >> getValue, SetValue and >> >> addValueChangeHandler. So do I keep the implementation of getvalue, >> SetValue and addValueChangeHandler all blank? and just do implementation >> of addValueChangeHandler and copy the method implementation of >> ValueListBox. addValueChangeHandler in that? >> >>> >>> > http://turbomanage.wordpress.com/2010/04/01/selectonelistbox-for-use-with-gwtmvp/has > an example. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.