Top Banner
Introduction to GWT Petteri Hietavirta
14

Introduction to GWT

Jan 13, 2015

Download

Technology

Presentation slides for "Introduction to GWT" presented for UK Java User Group Scotland.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to GWT

Introduction to GWTPetteri Hietavirta

Page 2: Introduction to GWT

What is all about?

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

Page 3: Introduction to GWT

Couple benefits

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

Page 4: Introduction to GWT

...Couple benefits...

Compiled for all main browsers

= less effort, more optimized code

Page 5: Introduction to GWT

...Couple benefits

Plenty of support and examples

Active community

Page 6: Introduction to GWT

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

Page 7: Introduction to GWT

GWT 2.0 newfeatures

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

Page 8: Introduction to GWT

How to getstarted?

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

Page 9: Introduction to GWT

Example 1

Super SimpleAPI, widgets

Page 10: Introduction to GWT

Example 2

Somewhat functionalAPI, Widgets, Debugger

Page 11: Introduction to GWT

Example 3

Client-ServerAPI, Widgets, RPC

Page 12: Introduction to GWT

Example 4

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

others

Page 13: Introduction to GWT

Some issues withGWT

• CSS still not trouble freebetween browsers

• GWT widgets are primitive insome cases

• Client side Java is only a subset• Compilation time

Page 14: Introduction to GWT

Questions?Comments and critic also welcome