The difference is that the Dev Guide references a ClientBundle (with its own 
CssResource) from a UiBinder file, whereas in the issue, the OP tries to 
create a CssResource (ui;style) referencing an ImageResource declared in 
another ClientBundle.
You currently have a choice:

   - either use ClientBundle+ImageResource+CssResource, 
   following 
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html
   - or benefit from the implicit ClientBundle created by UiBinder, using 
   ui:style to generate a CssResource, and ui:image to generate an 
   ImageResource (and ui:data for a DataResource, FWIW)

Unfortunately, ui:image is not documented in the Dev Guide, but you'll find 
examples in the "mail" and "expenses" samples (actually, you'll even find on 
in the JavaDoc for 
CustomButton: 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/CustomButton.html
 
)

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