Wednesday, February 1, 2012

Re: DOM events don't work in nested uibinder

Oh this is exactly my same problem.

I've inherited code that has this same issue (and it is thousands of lines of various widgets). So far folks had hacked around the problem by using JQuery.live() method.

Are you saying that Deepak's code should work if he removed the appendChild calls and instead uses add() as you indicated?

Should it be outerHtmlPanel.add(innerWidget.asWidget())?

Thanks,

-Clint

On Wed, Feb 1, 2012 at 3:18 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
Widgets have to be "attached" for their events to work, so use outerHtmlPanel.add(innerWidget, placeholder);

The fact that innerWidget is built with UiBinder has no consequence at all.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bthFbBx8xxgJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment