Wednesday, June 22, 2011

Re : @ImageOptions [Solved]

On 21 June 2011 18:56, Thomas Broyer <t.broyer@gmail.com> wrote:
> Could it rather be about how you *use* the ImageResource?
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6145

Ah, good call. And I even remember looking at those issues. This
should really be flagged by the compiler.

Anyway, for anyone else running into this, I changed

<img src="{res.myImage.getURL}" alt="My Image" class="{res.css.myImage}"/>

to

<g:Image resource="{res.myImage}" altText="My Image"
addStyleNames="{res.css.myImage}"/>

and things magically started to work again.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate