This project is a step-by-step Spring-GWT tutorial. It is inspired from the article written by Alex Tretyakov on 2012-08-30 Spring and GWT tutorial. Part 5 - UiBinder.
The project was created as a "Maven Project" with GWT cli-tool. Then files from hellogwt were added, commented and modified to run with SQLite instead of MySQL.
These are the steps:
- Spring Configuration
- Adding GWT
- GWT RPC services
- MyBatis and SQLite
- UIBinder
- Using a SplitLayoutPanel
- Internationalisation
- Hibernate and H2 (keeping MyBatis and SQLite in the configuration)
- JUnit tests
- GWT unit tests
Next steps:
- Use of GXT
- Build the project by executing
mvn clean installcommand. Now we have application war-file. - If Tomcat is running, stop/kill it.
~/bin/apache-tomcat-6.0.43/bin/shutdown.sh - Go to the tomcat installation folder
- Delete the temp and work folders. They only contain temporary files.
- Copy the war file
target/hellogwt.warto<tomcat>/webapps/folder. - Start the server
~/bin/apache-tomcat-6.0.43/bin/startup.sh. - Go to http://localhost:8080/hellogwt/.
If you have configured $HOME/.m2/settings.xml with a server called Tomcat6:
- If Tomcat is not running, start it.
~/bin/apache-tomcat-6.0.43/bin/startup.sh - Build and deploy the project by executing
mvn tomcat6:deploycommand. You can usemvn tomcat6:redeployif the war was deployed. - Go to http://localhost:8080/hellogwt/.
You need to install those plug-ins:
- Eclipse Git Team Provider
Right-click on project and click on Run As > Run on Server.
You need to install those plugins:
- GWT4NB
- JavaEE Base
- Maven
Click on Run project or type F6.
mvn compileonly compiles Java sources.mvn gwt:compileonly compiles GWT module and writes extras.mvn testrun JUnit tests.mvn gwt:testrun GWT unit tests.
- Define breakpoints if needed.
- Click on
Debug Projector type Ctrl+F5. - In the project custom menu, click on
Run GWT code server. - Visit the url said by the code server to install the bookmarklet.
- To run JUnit tests, in the project menu, click on
Test. - To run GWT unit tests, in the project custom menu, click on
Run GWT unit tests.
The source code is licensed under Apache License 2.0.