On Saturday, January 15, 2011 10:12:09 PM UTC+1, zixzigma wrote: > > you can see the code below, > the code displays the image (homeIcon), > but the css style is not applied (to my link for example) > [...]
> I am not calling ensureInjected anywhere, could it be that ? > Yes. > where should I call it ? Wherever you want. I'd put it in the Java class that "owns" the ui.xml (you can put a "@UiField MyResources res" there, and then "res.css().ensureInjected()"). You could also do it in your EntryPoint (for instance), with a one-liner: GWT.<MyResource>create(MyResource.class).css().ensureInjected() -- 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.
