Hello,
I'm new to smartGwt (but not new to gwt) and I'm currently evaluating if we can use smartgwt.
My first step is getting a hello world like example up and running (using maven, gwt 2.6.1, smartgwt 5.0p and SuperDevMode). But I can't get it to work.
As soon as I add the smartGwt Button, I get an empty page in firefox and chrome.
But when I only use gwt button all is working as expected.
I see error in my javascript console:
Uncaught TypeError: Cannot read property 'setAutoDraw' of undefined
Can anyone please explain what I'm doing wrong.
Some code sniplets:
Application.java
/**
* This is the entry point method.
*/
public void onModuleLoad() {
VerticalPanel vp = new VerticalPanel();
// Enabling this line AND disabling 'SmartGwt Button' results in two
// buttons ('Gwt Button' and 'Button two')
// Button button = new Button("Gwt Button");
// Enabling this line and disabling 'Gwt Button' results in empty page
IButton button = new IButton("SmartGwt Button");
Button button2 = new Button("Button 2");
vp.add(button);
vp.add(button2);
RootPanel.get().add(vp);
}
pom.xml
<!-- smartGwt - 5.0p-->
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>5.0p</version>
<scope>system</scope>
<systemPath>${basedir}/smartgwt.jar</systemPath>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>5.0p</version>
<scope>system</scope>
<systemPath>${basedir}/smartgwt-skins.jar</systemPath>
</dependency>
application.gwt.xml
<inherits name="com.smartgwt.SmartGwtNoScript"/>
Best regards,
Raymond Domingo
I'm new to smartGwt (but not new to gwt) and I'm currently evaluating if we can use smartgwt.
My first step is getting a hello world like example up and running (using maven, gwt 2.6.1, smartgwt 5.0p and SuperDevMode). But I can't get it to work.
As soon as I add the smartGwt Button, I get an empty page in firefox and chrome.
But when I only use gwt button all is working as expected.
I see error in my javascript console:
Uncaught TypeError: Cannot read property 'setAutoDraw' of undefined
Can anyone please explain what I'm doing wrong.
Some code sniplets:
Application.java
/**
* This is the entry point method.
*/
public void onModuleLoad() {
VerticalPanel vp = new VerticalPanel();
// Enabling this line AND disabling 'SmartGwt Button' results in two
// buttons ('Gwt Button' and 'Button two')
// Button button = new Button("Gwt Button");
// Enabling this line and disabling 'Gwt Button' results in empty page
IButton button = new IButton("SmartGwt Button");
Button button2 = new Button("Button 2");
vp.add(button);
vp.add(button2);
RootPanel.get().add(vp);
}
pom.xml
<!-- smartGwt - 5.0p-->
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>5.0p</version>
<scope>system</scope>
<systemPath>${basedir}/smartgwt.jar</systemPath>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>5.0p</version>
<scope>system</scope>
<systemPath>${basedir}/smartgwt-skins.jar</systemPath>
</dependency>
application.gwt.xml
<inherits name="com.smartgwt.SmartGwtNoScript"/>
Best regards,
Raymond Domingo