I am now encountering a strange phenomenon: the main page shows the image correctly when loading in the first time, but when clicking the main button the page does not show the image any more. After some investigation I learned that the container in which the image is added is not attached to the document (Element.isAttached()), after clicking the main button.
Even stranger: if I add Panel A the first time and Panel B after clicking the button (A and B both generated by the same method, containing an image), the hashcode of the java object of B will first become a new code (logically, because it gets created anew), but will then change to the hashcode of A again. This results of course in being unattached from the DOM, which results in it not being shown correctly.
Any idea why this could be? I can provide a full working example if necessary, it includes a mysql db, GWT project and a couple of servlets.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment