Table of Contents
- Table of Contents
- Summary
- GWT 1.6+ Examples
- GWT Example Using Handlers
- Math Flash Card
- Connection Pooling - Tomcat6
- Your Own JDO to MySQL - Tomcat6
- Join Two Projects Together - Eclipse Projects Join
- GWT 1.5- Examples Below This
- Code Snippets this.Wiki
- Eclipse Projects In Source
- Promoting
Summary
Example Eclipse Google Web Toolkit projects. These projects are working examples and have been tested before releasing them.
Why
Why do I document? Building my pride and joy: Gone Vertical habit trainer.
Learn By Example
Sample eclipse projects to look at in source. Lookup the code, methods, classes in these GWT eclipse projects to see how I did it. This will help you compare code notes with your project and/or research and development.
GWT 1.6+ Examples
Here is my new 1.6 stuff. I will deprecate the other examples later down the road.
- GWT on Google's App Engine is so easy to deploy your application
- This has got to be the coolest, easiest, nicest, way to deploy a web application.
- I am totally sold on the gwt + app engine.
GWT Example Using Handlers
This project is how I figured out how to use event handlers. One of the harder things for me to grasp given that I was used to the changelistener system.
- Demo it on Google App Engine - http://gwtexample.appspot.com/
- SVN Source Source
- This uses Change Handler, Click Handler, Fire a Change Event
- Uses Google App Engine
- Uses Integrated Google Analytics
Math Flash Card
This project is in its infancy, but the frame is working. I plan do dress it up once i get the application logic in place.
- Google App Engine Demo: http://mathflashcard.appspot.com/
- SVN Source Source
- Uses Keyboard handler, click hander, fire change event
- Uses Integrated Google Analytics
Connection Pooling - Tomcat6
- faster connections to mysql databases using connection pooling.
- source -> sand project
- check the war/WEB-INF/web.xml file out.
Your Own JDO to MySQL - Tomcat6
- do you want to run your own JDO on Tomcat6 to MySql. This is awesome. I am designing my projects to run on my JDO, or Google App Engine Jdo. This is a quick example using JDO to MySql using Tomcat6.
- source -> JDO Project
- check the rpcImpl file out.
Join Two Projects Together - Eclipse Projects Join
- do you want to join to GWT project together at the source code level (not have to compile them into a jar). Use a core project in every one of your other projects, both client and server side classes. Here is a straight forward example
- source -> ProjectA(includesB)>ProjectB
GWT 1.5- Examples Below This
The stuff below was done in 1.5 GWT architecture. Alot of its still very useful in 1.6.
Code Snippets this.Wiki
Application Navigation
Navigation - My thoughts on application navigationMy Best Practices
myBestPractices - What I like to do best, RPC Data Tranport, more coming soon.Advertising In GWT
Advertising - Advertising options in GWTEclispe Faqs
gwtEclipseFaqs - tips on setting up gwt with eclipse. 32bit JVM with AMD64, External Browser. And More...Tomcat Setup
gwtTomcat - How to setup tomcat and host your entire project front and back on tomcat.Quick Tips
QuickTips - Tips that might make the job easierDate and Time
gwtDateTime - getting date and time, Timezone, unix timestamp, start and end of day timestampGWT-DND
gwtDND - some tips to using the gwt-dnd libraryMySQL Database Server
project_MySQLConn - MySQL connection, query, update, insert snippetsMicrosoft SQL Database Server
project_MS_SQLConn - MS SQL connection, query, update, insert snippetsSearch Index Indexing
project_IndexingGWTApp - Getting your GWT application indexed
Demos
- Clicklistener / Changelistener Demo - example use using clicklistener and changelistener
- Feedback Dialog Box Demo - I use several widgets and methods to make this example happen. This is a working example. project_MySQLConn
- Urchin Tracker Demo - Google Analytics Urchin Tracker demo. Integrated gwt tracking. See project_UrchinTracker
- History Navigation Demo - History token / anchor tag navigation demo. See project_HistoryAnchor
- Calendar Demo - Calendar date picker demo. I also use it in Habit Trainer / Goal Trainer GWT Application. See project_CalendarWidget
- MySQL/RPC Demo - Example how MySQL and RPC works in GWT. Download the eclipse project for a looksee. project_MySQLConn
Eclipse Projects In Source
Eclipse project I have designed to test gwt structure out.
- Download or view the projects from the Source Tab above.
- Quickly import the projects from source to see example code. (Note: Refer to Eclipse Faqs gwtEclipseFaqs)
Clicklistener / Changelistener
Clicklistener and Changelistener watching events widgets. Notify originator widget. Widgets can notify each other.
Basic RPC
Simple rpc example.
RPC Advanced
More advanced rpc example passing an object from server to client.
- Example War file created from Tomcat War Builder Download War Example
- Check Out the War Builder
MySQL Connection
MySQL JDBC connection example. Connection, Statment, ResultSet
- Wiki Notes and Code Snippets: project_MySQLConn
Login Manager
How you could process user login, keep sessionid in mysql for rpc request load balancing and keep state while user uses gwt.
- Sign in, rpc to server, get unique session id, rpc return back to client, display success or error
- More Info: project_LoginManager
Date and Time
Get java time date (milliseconds), get unix time stamp (seconds), get start and end of day in seconds
- Wiki Notes and Code Snippets: gwtDateTime
Pass Around Widgets
Pass around widgets in an array
- Wiki Notes and Code Snippets: project_PassAroundWidgets
Tomcat War Builder
Deploy your project quickly with this.
- Build, Compile a war file from your gwt project, into a servlet for tomcat
- Wiki Notes and Code: gwtTomcatWarBuilder
- Download an example war file: Downloads
CalendarWidget
CalendarWidget datepicker example - this is real rough
- Wiki Notes and Code Snippets: project_CalendarWidget
Feedback Dialog Box Widget
Feedback widget gets users feedback. I use clicklisteners, rpc, serialization, mysql, timer and other fun stuff to get this to work.
- See source for entire project
- Feedback Dialog Box Test - I use several widgets and methods to make this example happen. This is a working example.
Google Analytics Tracking
Using JSNI in your java methods, you can directly send tracking data to google analytics.
- See source for entire project
- Wiki Notes and Code Snippets: project_UrchinTracker
History token / Anchor tag navigation
Using anchor tags and anchor tags with parameters makes your application very flexible with external linking and tracking.
- See source for entire project
- wiki Notes and Code Snippets: project_HistoryAnchor
Rich Text Editor
I am testing rich text editor dialog popup in gwt-linux milestone 2. It has a bug.
- See source for entire project
- project_RichTextEditor
Web Site / Application Advertising
Using different advertising systems.
- Advertising - more about advertising options in GWT