Finally I found the mistake - even though I cannot seem to reproduce
it in a new application. It was that simple line:
Image close = new Image("close.png");
Using Microsoft Script Editor I did some debugging and found, that
there was an exception when loading an image from the server.
This exception only occurs, if the image exists and is loaded several
times.
It comes from fireEvent-method and includes a load-event of the image
(even though I didn't use any load handler). Error message was
something like "object expected".
The image I wanted to load was only a small close.png for my custom
dialogbox. As a workaround I didn't load the image for each new
window, but created a static ImageBundle in DialogBox:
public interface CloseImage extends ImageBundle {
public AbstractImagePrototype closeImage();
}
private static final CloseImage CLOSE = (CloseImage) GWT.create
(CloseImage.class);
Each time I construct a DialogBox, I create the image using
CLOSE.closeImage().createImage();
With this modification it works like a charm. I'm afraid without the
debugger I would never have found it and I consider it as a bug. But
without reproducing it I don't think I can file a bug report...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---