Google Web Toolkit
By
Kaushik Sahoo

Mindfire Solutions
Date: Oct 30, 2013
What is GWT?



A set of tools for building AJAX apps in the Java
language



Write, run, test, and debug in Java



Is...
Why?

Handwritten Scripts vs GWT



Poor Usability

•

history, bookmarks



Poor Tool Support

•

Limited IDE support

...
Why?

Handwritten Scripts vs GWT



Hard to test

•

JUnit support for GWT



Quality Risks

•

New categories of runtim...
Why?

Handwritten Scripts vs GWT



Hard for large teams to work on the same code
base



Auto Complete



Browser Comp...
All these points start to matter a lot for big projects
What is the Solution?
Can Java be used for client-side scripting?
...
Unless you translate Java into JavaScript
GWT Features




HTML 5 support
Mobile Web support
Cross-browser?

An abstract DOM class






History class - Dem...
Widgets and Panels
Demos at Showcase
RPC





GWT supports various ways to communicate with
the server JSON, XML etc.
But a pure Java RPC interface would be ...
JSNI



JavaScript Native Interface
public static native void alert(String msg) /*-{
$wnd.alert(msg);
}-*/;
Things to know...


Technology second, users first.



It isn't Java vs Javascript or Java vs everything else.



Downl...
Question and
Answer
Thank you
Java Google Web Toolkit-GWT
Upcoming SlideShare
Loading in …5
×

Java Google Web Toolkit-GWT

578 views

Published on

All About GWT - A set of tools for building AJAX apps in the Java language.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
578
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java Google Web Toolkit-GWT

  1. 1. Google Web Toolkit By Kaushik Sahoo Mindfire Solutions Date: Oct 30, 2013
  2. 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. 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. 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. 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. 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…
  7. 7. Unless you translate Java into JavaScript
  8. 8. GWT Features    HTML 5 support Mobile Web support Cross-browser? An abstract DOM class      History class - Demo RPC Widgets JSNI Presentation - CSS
  9. 9. Widgets and Panels Demos at Showcase
  10. 10. RPC   GWT supports various ways to communicate with the server JSON, XML etc. But a pure Java RPC interface would be awesome. Isn't it?
  11. 11. JSNI  JavaScript Native Interface public static native void alert(String msg) /*-{ $wnd.alert(msg); }-*/;
  12. 12. 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
  13. 13. Question and Answer
  14. 14. Thank you

×