BeneficiaryPopUpImpl.as import com.arahant.app.common.BasePopUp; import flash.display.DisplayObject; import com.arahant.app.screen.standard.wizard.benefitWizard.page.simpleXXXXXXXXX.SimpleXXXXXXXScreen;
if (!mainWindow.contingentBeneficiariesHiddenField.booleanValue) { primaryRadioButton.selected = true; primaryRadioButton.visible = false; contingentRadioButton.visible = false; } private function get mainWindow():SimpleCoverageScreen { var parent:DisplayObject = this.parentWindow; while (parent is BasePopUp) parent = (parent as BasePopUp).parentWindow; return parent as SimpleCoverageScreen; } Sorry, that got accidentally sent before it was done. I continue... I have a GWT web app that has several screens. Each screen is represented by its own Java class. Each screen starts with the following 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 way GWT spawns it (probably for good reason to support other models). For my remaining screens I just use class methods and class variables instead of creating an instance. I do this for two reasons. The main reason is that I don't have to keep track of which instance when I do things 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 it would be entirely unrelated to the first tab. It would be like starting up two copies of the same program. One has nothing to do with the other. And, of course, one machine would have utterly nothing to do with the other. This all makes sense in theory and seems to work fine while debugging under eclipse. However, when I started it up under glassfish in a production environment, my app is flaky. Sometimes I enter data, click a button, and nothing happens. Other times a new screen is run and no data (from the server) shows up. When I retry it it works. I don't know what is causing this but I thought perhaps my unorthodox way of switching screens might be the problem. So, I have two issues. The first issue is whether I can do things with classes and resetting the root each time or not. The second is - what is 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+unsubscr...@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.