hi,
I tried to use gwt's uiBinder to get an image, but it wont' work,
in the .xml file, i defined:
<ui:with field='res' type="com.my.services.email.client.Resources"/> <ui:image field="testImage" resource="{res.calIcon}">
and i have a Resources.java file to define the image resource:
public interface Resources extends ClientBundle { Resources INSTANCE = GWT.create(Resources.class); @Source("img/cal.png") ImageResource calIcon(); }
and gwt complained:
[ERROR] No com.google.gwt.resources.client.ClientBundle$Source annotation and no resources found with default extensions
anyone knows what's wrong with this? Thanks!