Hi All. First of all, i looked through mail archive, but subject still not clear for me.
So, he is my code: Resources.java: public interface Resources extends ClientBundle { public static final Resources INSTANCE = GWT.create(Resources.class); interface Style extends CssResource { String myStyle(); } @Source("res/backgroung.jpg") ImageResource backgroundImg(); @Source("res/common.css") Style style(); } res/common.css: @url backgroundImg backgroundImg .myStyle { background: url(backgroundImg) left top repeat; } SomeWidget.ui.xml: <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:with field="res" type="my.package.Resources"/> <g:HTMLPanel> <img class="{res.style.myStyle}"/> </g:HTMLPanel> </ui:UiBinder> SomeWidget.java: public class SomeWidget extends Composite { //... static { Resources.INSTANCE.style().ensureInjected(); } public SomeWidget() { initWidget(uiBinder.createAndBindUi(this)); } } when im launching app there is no background image, any comments ? Thanks -- If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby Digital and all the music is free...
pgp2wdYcvUmQF.pgp
Description: PGP signature