Thank u all 4 ur replies..my problem is soloved now. On Jun 7, 5:16 pm, Jens <jens.nehlme...@gmail.com> wrote: > You only have a problem if you use GWT.runAsync in your method. If so, > everything that is inside the RunAsyncCallback.onSuccess method will be > downloaded as a separate javascript file once your app reaches this point. > The download will happen in parallel/async in production mode. In dev mode > you won't see a difference as it will be executed synchronous. > > Basically if you take my previous example and wrap the Label creation and > the label.setText() call into a GWT.runAsync it can happen that onModuleLoad > finishes and later on the additional code download finishes and the > onSuccess method is called. Thus onSuccess gets called after onModuleLoad > finishes. That would result in: > > onModuleLoad(): started > > onModuleLoad(): finished > > Label.setText(): hello world
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.