I'm trying loading an image in GWT 1.6.4 but I don't know where put the
image file. Every time that I run host mode, GWT doesn't found the file.
Could anyone help me?
Thanks in advance,
--
--fx
Hello all,
I'm trying loading an image in GWT 1.6.4 but I don't know where put the
image file. Every time that I run host mode, GWT doesn't found the file.
Could anyone help me?
> 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
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.
Ah, ok! Thank you very much,
--
--fx