A PopupPanel should not generally be added to other panels; rather, it should be shown and hidden using the show() and hide() methods.
Your UiBinder template then just looks like this:
<ui:UiBinder ... >
<g:HTMLPanel>
Stuff.
</g:HTMLPanel>
</ui:UiBinder>
// To use:
CustomDialog dialog = new CustomDialog();
// etc.
> --
> 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/-/EuskuIZqfqkJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>