Thursday, January 21, 2010

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

I finally bit the bullet, and started commenting out huge chunks of my
code, and running the application to see if that got rid of the
problem...

After a few hours of this, I finally narrowed it down to the following
(and similar) line of code:

daygrid.getColumnFormatter().setWidth(col, "0px");

As soon as I set this to "1px" rather than "0px" the javascript error
went away.

for you dduck, the way forward would be to do as leduque suggests
above and set the compile time flag for style to "detailed" and that
should give you a much better idea where the error is, you might find
the following link useful:
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish?

Id still like to know how to set this setting via eclipse, which im
sure is very simple for someone who knows!

Thanks,
John


On Jan 21, 2:14 pm, dduck <anders.johansen.a...@gmail.com> wrote:
> Well, using Safari I can now spot the place where the exception is
> thrown in the generated JavaScript, but I have no way to relate that
> to the Java code that I put into the GWT compiler.
>
> Any clues as to how I do that?
>
> Regard,
>   Anders

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate