http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_an_external_resource
-- On Mon, Sep 27, 2010 at 2:17 AM, Andrew Hughes <ahhughes@gmail.com> wrote:
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment