Re: UIBinder with css-defined images

2011-04-13 Thread dhartford
Self-correction, the 'no-arg' is because you do not use @sprite as an annotation, but instead on the same line as the style definition BAD: @sprite .background CORRECT: @sprite .background On Apr 13, 1:20 pm, dhartford wrote: > Wow, that made it crystal clear, thank you! > > So, using that I

Re: UIBinder with css-defined images

2011-04-13 Thread dhartford
Wow, that made it crystal clear, thank you! So, using that I should be able to do all this within the uibinder xml, with the intent to make a background image: @sprite .background { gwt-image: 'bgImage'; background-repeat: no-repeat; } Unfortunately (using Google Plugin)

Re: UIBinder with css-defined images

2011-04-13 Thread Thomas Broyer
As soon as you use UiBinder, you're implicitly writing a ClientBundle, just that you write XML instead of Java. A generates a CssResource; and you can use a to generate an ImageResource and a to generate a DataResource. You can then use them from the CSS with @sprite and @url, just like any