I was having trouble with GWT Image widgets in IE 8. Specifically, my page of search results with thumbnails would show an image placeholder in each row of the first page of results and a status message stuck on "loading 1 of 14...".
I tried experiments to test the following hypotheses: 1. Because the URL's didn't end in .jpeg, IE was becoming confused and failing to load. Try making url end in .jpeg. DIDN'T WORK 2. Because the base URL's were all the same, /tomcat/imageservlet, differing only in parameters, "?id=343", the GWT image code was thinking they were all the same image and that confused it. Make ID part of URI (like /tomcat/imageservlet/343). DIDN'T WORK 3. Because only the first page of image loads failed (next page showed search results with images correctly under IE), we should load the first page of images after a delay. Initialize within a DeferredCommand. DIDN'T WORK 4. Somehow IE or GWT is confused trying to load images right away. Create Image widgets in the page but then set their URL's after the page is built. (I just populated a Map<Image,String> with the image component as key and the URL to assign to it as value (right where previously I initialized the Image with the url directly). Then later on I loop through the keys and for each image.setUrl(map.get(image))) WORKED! I hope this workaround helps someone else struggling with the same bad behavior in IE. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
