Hi
I don't quiet understand the problem.
FlexTable table = new FlexTable();
Image img = new Image("icons/img.png");
table.setWidget(0, 0, img);
Image img2 = new Image("icons/img2.png");
table.setWidget(0, 0, img2);
should it not be :
FlexTable table = new FlexTable();
Image img = new Image("icons/img.png");
table.setWidget(0, 0, img);
Image img2 = new Image("icons/img2.png");
table.setWidget(0, 1 , img2);
???? or am i missing something.
in your code you should just see img2.
in your code, you have
On Nov 15, 7:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Greetings,
>
> using the following code will result in image not being loaded:
>
> FlexTable table = new FlexTable();
> Image img = new Image("icons/img.png");
> table.setWidget(0, 0, img);
> Image img2 = new Image("icons/img2.png");
> table.setWidget(0, 0, img2);
>
> Internal symptoms:
> -- img has both __pendingSrc and src attributes set
> -- img2 has only __pendingSrc set
> -- srcImgMap contains img with img2 as its child
>
> I suspect that when img is removed from table it can no longer receive
> onload event and therefore will never update children's src attribute
> and remove itself from the srcImgMap.
>
> Is my suspicion correct? Anybody has a fix/workaround for this?
>
> Thanks for any response!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---