do you also add the current changehandler to the recently created listbox? I mean, while you add the new listbox to the container, this op fires the second change event, looks like you're nesting your listboxes, so any change on the child box will propagate to the parent resulting in second handler call...
you can use the eclipse' debugger to track why the onChange() is called the second time (in dev mode) On 28 Nov., 15:08, Leung <leung1_2...@yahoo.com> wrote: > Hi, > > I have a private inner class that implements ChangeHandler. This ChangeHander > is applied to the listbox. Each click on the listbox will create another > listbox and added to the container. The onChange event is fired twice for one > click on the list box. > > Let say, I have 2 list box already added to the container. I expect only one > onChange is triggered when I click the last listbox. But, now, twice is fired. > > How does that happen? > How can I troubleshoot this problem? > > Thanks -- 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-tool...@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.