Use ClientBundle image as background-image
I'm trying to use an image from a ClientBundle as a background-image in a UIBInder template. I used this discussion as a guide, but was unable to get it to work. In my Java class I have: public static interface PriceButtonStyles extends ClientBundle { String paidIcon(); @ClientBundle.Source("paid_button_53x31.png") DataResource paid_buttonAsDataResource(); } @UiField PriceButtonStyles priceButtonStyle; And then in the corresponding template file I reference it like: <ui:style field="priceButtonStyle" type="com.example.client.PriceButton.PriceButtonStyles"> @url paidIconUrl paid