UIBinder & sprite

25 views
Skip to first unread message

MeiAestro

unread,
Oct 24, 2011, 5:01:45 PM10/24/11
to Google Web Toolkit
I am a bit confused regarding the use of sprites in UIBinder Classes.
As I was not able to use a css with sprites in a UIBinder XML I was
searching the web for this problem and found this issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=5320

On the other hand exactly this scenario is described in the GWT
Developer pages' examples (i.e. here:
http://code.google.com/intl/de/webtoolkit/doc/latest/DevGuideUiBinder.html
)

Can anybody bring light in the dark?

Thanks!

Thomas Broyer

unread,
Oct 25, 2011, 6:17:34 AM10/25/11
to google-we...@googlegroups.com
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:
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 )
Reply all
Reply to author
Forward
0 new messages