Hello :o) !!
I would like to create a simple SmartGwt project. In order to create it I did following steps:
1. I created a new GWT project with sample code without app engine. This project without smartgwt works properly.
2. Then I added smartgwt-skins.jar, smartgwt.jar and smartgwtee.jar to project libraries
3. I modified following files:
3.1. My JAVA-code:
package st.client; import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.IButton;
public class ST implements EntryPoint {
IButton button=null;
public void onModuleLoad()
{
button=new IButton("Hello");
button.draw();
}
}
3.2. My XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to='st'>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<entry-point class='st.client.ST'/>
</module>
3.3. My HTML:
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Web Application Starter Project</title>
<script> var isomorphicDir = "st/sc/"; </script>
<script type="text/javascript" language="javascript" src="st/st.nocache.js"></script>
<script type="text/javascript" language="javascript" src="st/loadScriptTagFiles.js"></script>
</head>
<body>
Hello!!
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
</body>
</html>
4. My Result (in SuperDev mode):
Blank page. Empty. Nothing. No button. (Except of "Hello!!" of course, which is hard-coded in my HTML-file)
I spent two days to get it work but without any success. Can somebody help before I switch to another framework?
BTW It would be very nice if IsomorphicSoftware would provide us with a simplest "HelloWorld"-project for Eclipse NEON, which is simply working - I would appreciate... :-)
Cheers from Munich / Germany
I would like to create a simple SmartGwt project. In order to create it I did following steps:
1. I created a new GWT project with sample code without app engine. This project without smartgwt works properly.
2. Then I added smartgwt-skins.jar, smartgwt.jar and smartgwtee.jar to project libraries
3. I modified following files:
3.1. My JAVA-code:
package st.client; import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.IButton;
public class ST implements EntryPoint {
IButton button=null;
public void onModuleLoad()
{
button=new IButton("Hello");
button.draw();
}
}
3.2. My XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to='st'>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<entry-point class='st.client.ST'/>
</module>
3.3. My HTML:
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Web Application Starter Project</title>
<script> var isomorphicDir = "st/sc/"; </script>
<script type="text/javascript" language="javascript" src="st/st.nocache.js"></script>
<script type="text/javascript" language="javascript" src="st/loadScriptTagFiles.js"></script>
</head>
<body>
Hello!!
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
</body>
</html>
4. My Result (in SuperDev mode):
Blank page. Empty. Nothing. No button. (Except of "Hello!!" of course, which is hard-coded in my HTML-file)
I spent two days to get it work but without any success. Can somebody help before I switch to another framework?
BTW It would be very nice if IsomorphicSoftware would provide us with a simplest "HelloWorld"-project for Eclipse NEON, which is simply working - I would appreciate... :-)
Cheers from Munich / Germany
Comment