You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
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
Flori
unread,
Dec 28, 2010, 8:21:39 AM12/28/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Okay.. I've to call onAttach manually after I added the picker element
to the DOM to get my custom handlers working: