21
Introduction à Vaadin

Introduction à Vaadin

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Introduction à Vaadin

Introduction à Vaadin

Page 2: Introduction à Vaadin

Qu'est ce que c'est ?

• Une RIA de plus

• 100% JAVA 

• Navigateur comme plateforme

• Pas besoin de plugin

Page 3: Introduction à Vaadin

Mais alors ... c'est comme GWT ?

Page 4: Introduction à Vaadin

Pas tout à fait...

• Construit sur GWT

• Pas de compilation javascript

• RIA Server Side

Page 5: Introduction à Vaadin

C'est bizarre ton truc !

Page 6: Introduction à Vaadin

Il était une fois ...

 Développé par IT Mill • 2002 :moteur RIA propriétaire• 2007 : intégration GWT + Licence Apache 2.0

Page 7: Introduction à Vaadin

Architecture Générale

Client Léger JavaScript

Logique métier

Page 8: Introduction à Vaadin

Architecture Générale

Page 9: Introduction à Vaadin

Client Side Engine

Page 10: Introduction à Vaadin

UIDL

Quand je clique sur ...

... et que ça fait ..

Page 11: Introduction à Vaadin

UIDL

... il s'était passé ...

Page 12: Introduction à Vaadin

Et mon modèle métier ?

• GWT :Dozer j'en ai ma dose et Gilead c'est rasoir...

• Vaadin :Avec UIDL mes objets ne transitent pas sur le réseau

Page 13: Introduction à Vaadin

Et pour l'intégration au reste ?

• Spring

• Google App Engine

• Porlets

• "Embarqué" par iframe

Page 14: Introduction à Vaadin

Usual Hello

public class MyApplication extends Application {@Overridepublic void init() {Window mainWindow = new Window("Hello Application");Label label = new Label("Hello Vaadin user");mainWindow.addComponent(label);setMainWindow(mainWindow);}

}

Page 15: Introduction à Vaadin

A quoi ça ressemble ? Qu'est ce que je peux faire avec ?

Plein de choses chouettes, regarde ici :

http://demo.vaadin.com/sampler

Page 16: Introduction à Vaadin

API & Plugin

• API (dernière version)

http://vaadin.com/downloading• Plugins

o Eclipse

http://vaadin.com/eclipseo Net Beans

http://vaadin.com/netbeans

Page 17: Introduction à Vaadin

Structure projet

Pas de fichier html, ni css !

Page 18: Introduction à Vaadin

Démo !

http://nicolasfrancois.googlecode.com/svn/trunk/AddressBook/

Page 19: Introduction à Vaadin

Effet boomerang 1/2

Création de composant fastidieuse

Page 20: Introduction à Vaadin

Effet boomerang 2/2

Système de thème par toujours évident à prendre en main

Page 21: Introduction à Vaadin

Conclusion

• Avantageso Simple et rapide à mettre en placeo Beaucoup de composants disponibleo Server sideo Documentation bonne qualitéo Open source

• Inconvénientso Pas vraiment webo Server Side