Okay.. I've to call onAttach manually after I added the picker element
to the DOM to get my custom handlers working:

picker.onAttach();
RootPanel.detachOnWindowClose(picker);

I don't know really why.. but it's working fine for me.

On 28 Dez., 11:54, Flori <floon...@googlemail.com> wrote:
> Hey all,
>
> I've got some code which moves some elements from one to another
> position:
>
> >CustomPicker picker = new CustomPicker(textBox); //FlowPanel with custom 
> >elements inside...
> >Element inputElement = textBox.getElement();
> >Element parentElement = inputElement.getParentElement();
> >parentElement.insertAfter(picker.getElement(), inputElement);
> >picker.pickerWrapper.getElement().insertFirst(inputElement);
>
> This code works fine together with the DOM, but my picker contains an
> HTMLPanel which has an ClickHandler. If I attach the picker to the DOM
> using RootPanel.get().add(picker); the ClickHandler seems to works
> fine. If I use the way described above the handler doesn't seemss to
> work anymore :( Any ideas/hints?
>
> Thanks in advance! cheers

-- 
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.

Reply via email to