I have written below a code segment for rendering image using
ClientBundle. Please try.
static interface Images extends ClientBundle {
@Source("yourImage.gif")
ImageResource contactsGroup();
}
// call CategoryCell
public static Images images;
new CategoryCell(images.contactsGroup());
private static class CategoryCell extends AbstractCell<Category> {
private final String imageHtml;
public CategoryCell(ImageResource image) {
this.imageHtml = AbstractImagePrototype.create(image).getHTML();
}
public void render(Context context, Category value,
SafeHtmlBuilder sb) {
sb.appendHtmlConstant(imageHtml).appendEscaped(" ");
}
}
}
S. Abraham
www.DataStoreGwt.com
On Sep 13, 5:40 pm, Stephen Fleming <[email protected]> wrote:
> I am unable to render image on my application using clientbundle.
> Provide solution for me.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.