This is what I do

@UiField
Hyperlink imageLink;

...
String imgStr="<img src='"+url+"'/>";
imageLink.setHTML(imgStr);

Andrey

On Jan 15, 4:25 pm, zixzigma <[email protected]> wrote:
> g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element
> if I'm correct.
>
> do you know how we can then wrap an image inside a hyperlink,
> other than the approach below?
>
> <g:HTMLPanel>
> <a href="#mail/starred">
>                         Home
>                         <g:Image resource="{res.homeIcon}" />
> </a>
> </g:HTMLPanel>

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