|
#1
|
|||
|
|||
|
For those of you who use NetBeans with the GWT4NB, here are some helpful tips to get started with SmartGWT. This applies to Glassfish, I don't know how it configures for Tomcat.
First when you try to run a SmartGWT application (as with ExtGWT) you will run out of java heap space when you try to compile. To fix this, modify build-gwt.xml as follows: In target "-post-compile", change: Code:
<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true">
Code:
<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512M">
Code:
<jvmarg value="-Xmx512M"/> Code:
name="${gwtshell.jvmargs.base}" value="-Xdebug . . ."
Now you will be able to run it, but none of the images in the SmartGWT.jar will show up. To get those working, look at your gwt.properties file and change Code:
gwt.output.dir=/com.test.Main Code:
gwt.output.dir=./ Code:
<script language="javascript" src="com.test.Main/com.test.Main.nocache.js"></script> Code:
<script language="javascript" src="com.test.Main.nocache.js"></script> I hope this helps someone. It would have saved me a good bit of time! |
|
#2
|
|||
|
|||
|
Thanks for posting that Marcus, that's very helpful.
|
|
#3
|
|||
|
|||
|
It works like a charm. I tried it on tomcat
|
|
#4
|
|||
|
|||
|
SmartGWT can also be used with NetBeans and Maven. Here is how:
-Install the Maven Plugin in Netbeans at Tools > Plugins > Available Plugins. -Use the GWT-Maven: Eclipse Maven 2 Plugin for the Google Web Toolkit in your pom |
|
#5
|
|||
|
|||
|
GWT4NB has been updated to 2.5.2 on https://gwt4nb.dev.java.net/. I don't see it in the available list from netbeans but you can download it then install via the "Downloaded" tab of the Plugins wizard.
This has the memory fix and now supports types on the AsyncCallback Code:
AsyncCallback<List<AlbumData>> callback = new AsyncCallback<List<AlbumData>>() {
Code:
gwt.compiler.jvmargs=-Xmx512m |
|
#6
|
|||
|
|||
|
Aaldaaf,
Sweet, thanks for the update. Good to see the GWT4NB team hasn't disappeared, heard rumors that development had stopped and was afraid I'd have to start over with Maven or another library. I've already lost a significant amount of time dumping the learning curve of the "library that must not be named" and moving to SmartGWT. |
|
#7
|
|||
|
|||
|
I've been checking out GWT4NB and was quite disappointed by the handling of dependencies:
For example why would I need gwt-dev-*.jar in my WAR file ? Have these issues been fixed ? |
|
#8
|
|||
|
|||
|
Quote:
eliminates this problem. After adding this line to hosted HTML file Code:
<script> var isomorphicDir = "[MODULE_NAME]/sc/"; </script> Aleksandras |
|
#9
|
|||
|
|||
|
I'd like to use smartgwt on netbeans 6.5.1 and tomcat, but even if i follow your instruction, no images are draw on page.
can anyone help me or post an example of configuration? please. thx to all |
|
#10
|
|||
|
|||
|
Dear All,
Note: I am using NetBeans IDE 6.8, GWT 2.0.3 and SmartGWT 2.1 the latest versions as of today 16/03/2010 Initially I was trying to run one of the SmartGWT showcase examples, but there were some problems with its display, So I thought there might be some problem with its configuration, So I found this post and performed all the configuration as suggested by marcusocasey. But now, I think the problem is due to some CSS issues, and I guess the configuration suggested by marcusocasey is no longer required in the latest version I am using because there is no difference on doing that configuration. So I thought of mentioning out here, as It would save someone's time. If anyone else has some different opinion, please provide thier inputs to this thread? Kind regards, Hardik |