Re: Problem with @sprite

2011-01-06 Thread Jeff Schwartz
Resolved by adding the following to my .ui.xml template: ui:image field=btndelete16x12 src='btndelete16x12.gif'/ Apparently the image declaration is required because the .ui.xml file references the .css file in which the @sprite is defined but you would never have know that from the ambiguous

Problem with @sprite

2011-01-05 Thread Jeff Schwartz
I want to create an anchor element that has an image as its background and I want to apply a css style selector to the Anchor widget that defines the background image such as myAnchorWidget.setStyle(...). I am not able to get it working and when I run the application it throws an error which I've

Re: Problem with @sprite

2011-01-05 Thread Thomas Broyer
A CssResource is always created in the *context* of a ClientBundle, and the ImageResource-s are looked up in that ClientBundle. In the snippet you posted, there's no (apparent, as you didn't include the ClientBundle where InsurancePaymentStyle is used) relationship between LVMResources and

Re: Problem with @sprite

2011-01-05 Thread Jeff Schwartz
Hi Thomas, Thank you for your explanation. I am at a loss understanding how I create the CssResource in the context of the ClientBundle. Can you elaborate on that and maybe provide an example? Just to update the information I previously provided, I've added