2. What is GWT?
A set of tools for building AJAX apps in the Java
language
Write, run, test, and debug in Java
Is it a compiler?
3. Why?
Handwritten Scripts vs GWT
Poor Usability
•
history, bookmarks
Poor Tool Support
•
Limited IDE support
•
Debugging too often boils down to window.alert()
•
Profilers? Findbugs?
4. Why?
Handwritten Scripts vs GWT
Hard to test
•
JUnit support for GWT
Quality Risks
•
New categories of runtime-only bugs (e.g. spelling bugs)
1047:
x.compnent = getValue("x");
•
Poor JS reuse model encourages "from scratch" or copy/paste
5. Why?
Handwritten Scripts vs GWT
Hard for large teams to work on the same code
base
Auto Complete
Browser Compatibility
Remember our Dear friend IE !!!
6. All these points start to matter a lot for big projects
What is the Solution?
Can Java be used for client-side scripting?
More or less, the impossible…
8. GWT Features
HTML 5 support
Mobile Web support
Cross-browser?
An abstract DOM class
History class - Demo
RPC
Widgets
JSNI
Presentation - CSS
13. Things to know...
Technology second, users first.
It isn't Java vs Javascript or Java vs everything else.
Download exactly what you need.
GWT Team slogan: the bling is on the inside
Hosted mode