Hands on gwt

32
May 7th 2014 - Tunisia Hands on GWT

description

Getting started with gwt

Transcript of Hands on gwt

Page 1: Hands on gwt

May 7th 2014 - Tunisia

Hands on GWT

Page 2: Hands on gwt

Haifa NASRI

Software Engineering Student @INSAT

Organizer @GDG Women Tunis

Co-founder &Workshop Manager @INSAT Google Club

[email protected]

Page 3: Hands on gwt

Agenda

1. Ajax 2. Introduction 3. The main principles4. advantages5. GWT in a few figures6. GWT in action ... !

Page 4: Hands on gwt

AJAX

HTML & CSS

XMLHttpRequest

XML

JavaScript

Page 5: Hands on gwt

GWT 1.0

May 16, 2006

GWT 2.6

Janvier 2014

GWT : History GWT : History

Open Source Project !

Page 6: Hands on gwt

From the beginning, a strong community ...

GWT : History

Page 7: Hands on gwt

Most Google services are coded with GWT such as :

GWT : History

Page 8: Hands on gwt

?WHY GWT ?

Page 9: Hands on gwt

Solution : Generate JavaScript code from Java code

Page 10: Hands on gwt

WhyJAVA ?

Page 11: Hands on gwt

WhyJAVA ?

Page 12: Hands on gwt

What is GWT?

Page 13: Hands on gwt

The main principles

Part Client: Java code is compiled into the final javascript and running in a browser- only libraries and JAVA APIs that can be compiled to javascript are used in the client side- partial emulation of the JRE(java.lang.* , Java.util.* ..

Page 14: Hands on gwt

The main principles

GWT application can run in two modes :● Developement Mode: used to test the application in the

browser without the need to compile javascript

● Production Mode : the application is translated into HTML and Javascript code and can be deployed to a web server

Page 15: Hands on gwt

The main principles

Widgets :Many extension Libraries :SmartGWT , Sencha GXT & Vaadin ..● JAVA :Generate UI Widgets from JAVA code (Similar to programming SWING)● UI Binder: based on XML files● GWT Designer: drag and drop, JAVA code automatically

generate

Page 16: Hands on gwt
Page 17: Hands on gwt

The main principles

RPC Remote Service: ● Asynchronous Calls!● Based on the java servlet architecture ● GWT-RPC services are not some as web services

Page 18: Hands on gwt

advantages

Page 19: Hands on gwt

EASY !

Page 20: Hands on gwt

FAST !

Page 21: Hands on gwt

BEAUTIFULL !

Page 22: Hands on gwt

GWT in a few figures .. From The Future of GWT Report 2013

Page 23: Hands on gwt
Page 24: Hands on gwt
Page 25: Hands on gwt
Page 26: Hands on gwt
Page 27: Hands on gwt
Page 28: Hands on gwt

Install GWT

● install the GWT plugin for Eclipse:

Page 29: Hands on gwt
Page 30: Hands on gwt

GWT in Action …

Samples: http://www.gwtproject.org/examples.htmlShowcase :http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBoxGWT Gallery : http://www.gwtproject.org/doc/latest/RefWidgetGallery.html

Page 31: Hands on gwt

Demo ..

Page 32: Hands on gwt

Q/A