Introduction to GWT

Post on 13-Jan-2015

1,429 views 0 download

Tags:

description

Presentation slides for "Introduction to GWT" presented for UK Java User Group Scotland.

transcript

Introduction to GWTPetteri Hietavirta

What is all about?

1. Write some Java code2. Compile3. AJAX web application!

Couple benefits

It is Java code for you• to write• to debug

...Couple benefits...

Compiled for all main browsers

= less effort, more optimized code

...Couple benefits

Plenty of support and examples

Active community

Features• API• Ready made widgets (but not limited to)• RPC (JSON goes as well)• History support• Debugger• JUnit• i18n• JSNI• Apache Licence v2

GWT 2.0 newfeatures

• Code splitting• UI binder• Client bundles• Layout panels• Improved compilation• Speed Tracer

How to getstarted?

1. Install GWT Eclipse plug-in2. Create a project

Example 1

Super SimpleAPI, widgets

Example 2

Somewhat functionalAPI, Widgets, Debugger

Example 3

Client-ServerAPI, Widgets, RPC

Example 4

CC7API, Widgets, JSON, i18n, JSNI, Ext GWT, and some

others

Some issues withGWT

• CSS still not trouble freebetween browsers

• GWT widgets are primitive insome cases

• Client side Java is only a subset• Compilation time

Questions?Comments and critic also welcome