Ok, I had several issues trying to take this approach, one of which
was difficulty getting events called.  My lovely hack above in the end
works for now.  You're right this is inelegant and will break, but
hopefully when it breaks it'll be because dialog buttons are
supported:

http://code.google.com/p/google-web-toolkit/issues/detail?id=1405&can=5

On Apr 16, 2:41 pm, David <[email protected]> wrote:
> Hi,
>
> Well actually it does work. I just did a Label.wrap of the element
> followed by addClickHandler and the handler is correctly triggered.
>
> I will however need to switch to an approach like yours... but that is
> a lot of low-level code while all they had to do was provide the
> possibility to put a widget in the Caption part. Your code will break
> as soon as they change the Caption interface (the javadoc warns about
> it)... but rather have a compiler error than discover at runtime!
>
> David
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to