On Friday, August 24, 2012 1:44:01 PM UTC+2, Jonas wrote:
>
> Hi,
>
> I'm trying to move as much of my widgets into native HTML elements, for 
> example InlineLabel to <span> and so on.
> But how do you use the <img> element in the most efficient way in UiBinder 
> with an ImageResource from a ClientBundle?
> Do I have to set the class as a style defined with @sprite for this to 
> work?
>

Yes.

Either that (and then use a <span> or <div> rather than an <img>) or use a 
DataResource (<ui:data>) instead.

See also http://stackoverflow.com/a/12100885/116472

-- 
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/-/cUgZys78TtIJ.
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