tags:

views:

81

answers:

1

When using GWT 2.0.x and SmartGWT 2.2 Code as simple as:

public class SmartGwtTest implements EntryPoint {    
    public void onModuleLoad() {  
        IButton button = new IButton("say hello");
    }
}

will generate the exception.

com.google.gwt.core.client.JavaScriptException: (null):

This only happens in hosted (devmode)

ant hosted

I also suspect that maybe the GWT Development Plugin might have something to do with it.

Have you found a similar problem? How did you solve it?

A: 

Not an answer but a workaround was to use compile the app. And use it that way.

ant build

Although compilation takes a long time because it generates several permutations of the code. ie different versions for different browser to make compilation faster you can set your target browser while testing.

to do that in your ModuleName.gwt.xml file add the following line:

<set-property name="user.agent" value="gecko"/>
<!-- to test with firefox -->

That will make compilation faster.

Hope this helps someone.

elviejo