On Monday, February 28, 2011 7:33:47 PM UTC+1, Deepak Singh wrote:
>
> Hi,
>
> Now it compiles fine but the page UI is not rendering style.css and the 
> sprite images.
>
> I have done this in onModuleLoad()
>
> StyleInjector.inject(resource.style().getText());
>

You should rather use: resource.style().ensureInjected();



On Monday, February 28, 2011 10:35:45 PM UTC+1, John LaBanca wrote:
>
> The class names are obfuscated.  You can try adding @NotStrict 
> to MyResources#style(), but that isn't really recommended because the 
> compiler can't optimize. 
>

Or you can mark the classes as @external within the CSS, with the same 
drawback (well, almost, the compiler will still merge/split/reorder a few 
things, right?).
 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to