Ok I have figured out how to reference images from the xml by using <ui:with field='res' type='com.xxx.xxx.client.StaticResources.StaticResources'/>
and then <g:Image ui:field="iconAddNew" resource='{res.icon_add_new}'></ g:Image> but how do I do it from the UiStyles.css ???? thanks On Feb 11, 10:04 am, shahid <shahidza...@gmail.com> wrote: > I am using the UiBinder for the first time and it is coming along > nicely apart from one small problem. > In my root package (com.xxx.xxx.client) I have defined a css style > (UiStyles.css). And in a sub package (com.xxx.xxx.forms) I have forms > which uses UiBinder so in the xml file I refer to the UiStyle as (../ > UiStyle.css) which works fine. > > Now I have images in another package > com.xxx.xxx.StaticResources.images. How do I refer to those images in > either the xml files as <g:Image ui:field="iconAddNew" url='???????'></ > g:Image> or in the UiStyles.css. I have tried using (StaticResources/ > images/imageName) in UiStyles.css and (../StaticResources/images/ > imageName ) but it doesn't work. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.