Re: GWT.create() doesn't work outside onModuleLoad()

2009-08-18 Thread Adam Pratt
:03 pm, davis wrote: > Hi Brian, I think you want: > > MyServiceAsync service = GWT.create(MyService.class); > > On Aug 18, 3:00 pm, Adam Pratt wrote: > > > Hey All, > > > I'm trying to get one very simple line of code to work: > > > MyService service = GW

GWT.create() doesn't work outside onModuleLoad()

2009-08-18 Thread Adam Pratt
Hey All, I'm trying to get one very simple line of code to work: MyService service = GWT.create(MyService.class); I've been playing around with this a lot, and I'm noticing that this works fine within in the onModuleLoad() method, but anywhere else in my client code, I get the following error (