I'm using Eclipse on Windows.
I have added a GWTCanvas to the demo app and am trying to load an
image and display it with code which is
omething like this:
http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader
My problem is that the image only loads and displays if I have a
do you get any error message while doing this...?
probably that might help you to track exactly where it is searching
for googlecode.png.
--
Aditya
On Mon, Aug 9, 2010 at 2:44 PM, kstokes wrote:
> I'm using Eclipse on Windows.
>
> I have added a GWTCanvas to the demo app and am trying to lo
Hi Aditya,
Well I have two apps, once is an App Engine variant, and they are a
little different in their response, although neither will display the
image.
My App Engine version (when running in hosted mode) displays in red
on the console that two files can't be found:
Aug 9, 2010 10:13:51
try this:
String[] imageUrls = new String[] {GWT.getHostPageBaseURL()
+ "images/GoogleCode.png"};
2010/8/9 kstokes
> Hi Aditya,
> Well I have two apps, once is an App Engine variant, and they are a
> little different in their response, although neither will display the
> image.
>
> My App E
*
Look at this error message
Aug 9, 2010 10:17:54 PM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /mywebapp/GoogleCode.png
It is showing that server is trying that GoogleCode.png under
"/mywebapp/GoogleCode.png"
Where it is not finding
So try
Gal,
Thanks for the reply. I gave it a try like so:
String[] imageUrls = new String[] {GWT.getHostPageBaseURL()
+
"images/GoogleCode.png"};
But now I get an exception:
05:25:02.432 [ERROR] [mywebapp] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptExcep
Aditya,
Yeah, I was unsuccessful at figuring out where exactly it is
looking on my hard drive for the image file. I did a lot of googling
and putting GoogleCode.png in all kinds of places in the project
before I posted. Judging from the comments on the incubator Wiki page
for imageLoader, I'm
kstokes writes:
>
> Aditya,
>
>Yeah, I was unsuccessful at figuring out where exactly it is
> looking on my hard drive for the image file. I did a lot of googling
> and putting GoogleCode.png in all kinds of places in the project
> before I posted. Judging from the comments on the incubat
Here how I solved this issue:
The key was reading over the GWT doc on organizing projects:
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html
- This is the relevant section
--
: Each occurrence of the tag adds a
packag