Yet again I mess up the email. Not my day... The email is correct from the sentence that starts with "Sorry".
-- On Thu, May 9, 2013 at 7:17 PM, Blake McBride <blake1024@gmail.com> wrote:
Sorry, that got accidentally sent before it was done. I continue...I have a GWT web app that has several screens. Each screen isrepresented by its own Java class. Each screen starts with thefollowing logic:RootPanel rootPanel = RootPanel.get();rootPanel.clear();I then add the stuff I want to appear on the new screen to rootPanel(since each screen doesn't share content with the prior screen).The first screen (class) is an instance object because that is the wayGWT spawns it (probably for good reason to support other models). Formy remaining screens I just use class methods and class variablesinstead of creating an instance. I do this for two reasons. The mainreason is that I don't have to keep track of which instance when I dothings with the screen. I would only have one copy of the screen.I presume that if I opened the same app in another browser tab itwould be entirely unrelated to the first tab. It would be likestarting up two copies of the same program. One has nothing to dowith the other. And, of course, one machine would have utterlynothing to do with the other.This all makes sense in theory and seems to work fine while debuggingunder eclipse. However, when I started it up under glassfish in aproduction environment, my app is flaky. Sometimes I enter data,click a button, and nothing happens. Other times a new screen is runand no data (from the server) shows up. When I retry it it works. Idon't know what is causing this but I thought perhaps my unorthodox wayof switching screens might be the problem.So, I have two issues. The first issue is whether I can do things withclasses and resetting the root each time or not. The second is - whatis causing the flakiness when operating in a production environment?Any pointers would really be appreciated.Thanks.Blake McBride
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