tags:

views:

10

answers:

1

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!

A: 

to work with UI image give the path location correctly and use the tags of rerender also with is the syntax of it

could you give me more details?