@Jan - Thanks for your help, it solved my problem. - Digs
On Feb 1, 8:33 pm, Jan Mostert <j...@mycee.com> wrote: > Your path is wrong, it should be relative to file where you import the image > eg: > > main/java/com/myproject/client/scaffold/ui/widget/somecomponent.ui.xml > <ui:image field='field_tl' > src="../../../style/images/Universal-frame_mod_tl.png" /> > > and the image is located in > main/java/com/myproject/client/style/images/Universal-frame_mod_tl.png > > That @Source should probably have a path of "../ > public/resources/cut_icon.gif" > > Hope it helps :-) > > PS, is there a better way to do this, eg force an absolute path somehow? > > > > On Tue, Feb 1, 2011 at 6:43 AM, Digs <digantbhav...@gmail.com> wrote: > > Hi, > > > I am trying to use ClientBundle in my project. > > My project structure is > > src/com/company/project/client - contains all java files > > src/com/company/project/public/resources - contains all image files. > > > I have no problem if I place images in client folder and use > > @Source("cut_icon.gif") > > public ImageResource cutIconImage(); > > > But I need to place images under src/com/company/project/public/ > > resources folder for my project. > > When I try > > @Source("src/com/company/project/public/resources/cut_icon.gif") > > public ImageResource cutIconImage(); > > > I get error. > > > Please help.. > > > Thanks in advance. > > > - digs > > > -- > > 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+unsubscr...@googlegroups.com<google-web-toolkit%2Bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - > > - Show quoted text - -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.