Hi, you have to use GWT.getModuleBaseURL() to reference module related resources. If you have generic images you can put them in 'war/images' and access them as indicated above.
On Apr 13, 8:20 am, Fabrício Cabral <[email protected]> wrote: > On Sun, Apr 12, 2009 at 11:03 AM, hezjing <[email protected]> wrote: > > Hi Fabrício, > > Hi Hez! > > > I saved my images in war/images directory, and here is how I create the > > Image: > > Image img = new Image("images/test-1.jpg") > > It worked fine but I don't know if is it the "right way" because the GWT 1.6 > documentation says we should use GWT.getModuleBaseURL() to locate > our static resources like images, css files, etc. > > So, you or anyone knows where I should put my static resources to access > them via GWT.getModuleBaseURL() . > > Thank you very much, > > -- > --fx --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
