tags:

views:

105

answers:

1

Dear members,
How to set background image in uibinder/java to an image in ClientBundle without using:

obj.getElement().getStyle().setBackgroundImage("url("+Images.INSTANCE.bg().getURL()+")");

Because this doesn't work in IE (FF is OK). I think I should set the background image directly in uibinder with css @url or ...

(I am using GWT 2.0.3)
Regards

+2  A: 

The docs explain this :) (note that internally UiBinder uses CssResource, so all that applies to CssResource, applies to the CSS styles you define in UiBinder's <ui:style> too)

Igor Klimer