Monday, September 24, 2012

How to use image from webapp directory in ui.xml

Hello.
I have ui.xml file with layout in some package com/xxx/gwt/client/widgets/  and use image in that file like:

<ui:image field='logo' src='images/about_logo.png'/>

So if this image in package  com/xxx/gwt/client/widgets/images   all works fine. But i want to store images in webapp directory, in which case i cant access it from ui.xml. Always get error like:

   [ERROR] Resource images/about_logo.png not found. Is the name specified as Class.getResource() would expect?

How i can access images in webapp from ui.xml??

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/t7wGaeWTEK4J.
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