How to access a JNSI-exported Java method from external Javascript on document load?

2010-04-26 Thread Brian Ferris
Based on the code at: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling I can successfully export a Java method written in GWT as a Javascript function to be called by external Javascript. The problem I'm having is with timing. Specifically, the JSNI-exported me

Re: EntryPoint onModuleLoad called multiple times over course of application lifetime

2009-03-05 Thread Brian Ferris
o 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 > > wrote: > > >> remember, if your libraries (other GWT modules) also have ent

Re: EntryPoint onModuleLoad called multiple times over course of application lifetime

2009-03-04 Thread Brian Ferris
result of the RPC call the javascript loads another > page or reloads the current one? > > On Wed, Mar 4, 2009 at 2: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

EntryPoint onModuleLoad called multiple times over course of application lifetime

2009-03-03 Thread Brian Ferris
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 hoste

Unit Testing Generators - Best Practices?

2008-12-02 Thread Brian Ferris
I'm writing some unit tests for a Generator. The standard practice for handling errors in Generators seems to be to log an error message to the logger and then throw an UnableToCompleteException. Unit testing the proper handling of errors like these seems tricky for a couple reasons. Catching t