Since it's in hosted mode, you can set a breakpoint in onModuleLoad() and look at the stack to determine where it's being called the 2nd and subsequent times.
On Thu, Mar 5, 2009 at 3:55 AM, Sumit Chandel <[email protected]> wrote: > Hi Brian, > This definitely shouldn't be standard behaviour, and would be something to > worry about if it's occurring due to a bug in hosted mode, however that's > unlikely. > The more likely cause is either what Jason mentioned above - you have > multiple entry points defined either in your first module or in modules > you're inheriting from - or that the code updating the UI when your RPC > comes back is somehow reloading or refiring the onModuleLoad() method. I'm > not sure what that something could be if it's only causing the entrypoint to > run multiple times in hosted mode and not in web mode, but the next step > would probably be to post up that code to see if there's anything to > investigate there. > Hope that helps, > -Sumit Chandel > > On Wed, Mar 4, 2009 at 3:50 PM, Jason Essington <[email protected]> > wrote: >> >> remember, if your libraries (other GWT modules) also have entry >> points, all of the onModuleLoad() methods will be called in turn. >> >> -jason >> >> On Mar 4, 2009, at 12:30 AM, Brian Ferris wrote: >> >> > >> > I have a relatively complex GWT application composed of my main >> > application EntryPoint and a number of library modules. I had some >> > printlns in the EntryPoint for my application and the libraries and I >> > noticed that they are called multiple times over the course of the >> > application lifetime in hosted mode. This is not the standard "I just >> > hit the reload button" case where you expect to hit your module >> > EntryPoint, but more of the case where a user has just hit a button to >> > initiate an RPC call that then updates the UI. >> > >> > Is this expected behavior? Something I should be worried about? I >> > apologize for not posting any code samples, but I'm hoping there is >> > something simple I'm missing before I go through the work of trying to >> > reproduce the behavior with a simpler code fragment. >> > > >> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
