Howdy,

Our ui.xml template styles would like to access some ImageResources defined
in a ClientBundle.

<ui:with field="res"
type="com.acme.project.client.resource.AcmeClientBundle"/>


But the @sprite's can't ever seem to use the ClientBundle's ImageResources
from the ui.xml's <ui:style>... for example...

<ui:style>
@sprite .header {
    gwt-image: "res.companyLogo"; /** DOES NOT WORK*/
}
</ui:style>


Programatically (i.e. in Java src), I can use AcmeClientBundle's
ImageResource(s), but they just don't work in the ui.xml :'(

Does anyone have a working example they could please share?

Also, I have ever tried (unsucessfully) to create the image resource (again)
in the template, but it also does not work and shouldn't be necessary
anyway.....

<ui:image field="logo"  src="res.companyLogo" />
<ui:image field="logo"  src="companyLogo" />
<ui:image field="logo"  resource="res.companyLogo" />
<ui:image field="logo"  src="res.companyLogo.getURL" />


CHEERS :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to