15
Bucharest GTUG 1 Iunie 2010

Bucharest GTUG - Roo and GWT - 01 June 2010

Embed Size (px)

DESCRIPTION

Spring Roo and Google Web ToolkitSpringSource and Google are working together to combine the speed of development of Spring Roo with the power of the Google Web Toolkit (GWT) to build rich browser apps.

Citation preview

Page 1: Bucharest GTUG - Roo and GWT - 01 June 2010

Bucharest GTUG1 Iunie 2010

Page 2: Bucharest GTUG - Roo and GWT - 01 June 2010

What's Coming in GWT 2.1?  

• Data Presentation Widgets• MVP Framework• Spring Roo• Server-side Speed Traces

Page 3: Bucharest GTUG - Roo and GWT - 01 June 2010

GWT 2.1 and SpringSource Tool Suite (STS)

Google and VMware are delighted to introduce SpringSource's new STS 2.3.3 and Spring Roo 1.1.0.M1 releases. These technologies deliver new levels of productivity, including:

– Spring Roo 1.1.0.M1– Google Plugin for Eclipse (GPE)– Data Nucleus (DN) Plugin for Eclipse

Page 4: Bucharest GTUG - Roo and GWT - 01 June 2010

Install SpringSource Tool Suite (STS)

• Dowload springsource-tool-suite-2.3.3.M1-e3.5.2-win32.zip

• Unzip - || -

Page 5: Bucharest GTUG - Roo and GWT - 01 June 2010

Start SpringSource Tool Suite

• Open DashBoard• Install Extensions (DataNucleus EclipsePlugin, Google Plugin for

Eclipse)

• Start new Roo Project

Page 6: Bucharest GTUG - Roo and GWT - 01 June 2010

New Roo project

Page 7: Bucharest GTUG - Roo and GWT - 01 June 2010

Building roo project roo>

• type 'hint' and ENTER for the next suggestion.

• Type 'persistence setup' and then hit CTRL+SPACE three times.

• For testing purposes, type (or CTRL+SPACE) HYPERSONIC_IN_MEMORY.

roo> persistence setup --provider HIBERNATE

--database HYPERSONIC_IN_MEMORY

Page 8: Bucharest GTUG - Roo and GWT - 01 June 2010

Creating Entities and Fields

• roo>entity --class ~.server.domain.Book

• roo> field string --fieldName name

• roo> field string --fieldName author

In Roo, '~' means the --topLevelPackage you specified via 'create project'.

Page 9: Bucharest GTUG - Roo and GWT - 01 June 2010

class Book

package ro.gtug.app.demo.server.domain;

import javax.persistence.Entity;import org.springframework.roo.addon.javabean.RooJavaBean;import org.springframework.roo.addon.tostring.RooToString;import org.springframework.roo.addon.entity.RooEntity;

@Entity@RooJavaBean@RooToString@RooEntitypublic class Book {}

Page 10: Bucharest GTUG - Roo and GWT - 01 June 2010

Add fields

roo>field string --fieldName name roo>field string --fieldName author

And result: public class Book { private String name; private String author;}

Page 11: Bucharest GTUG - Roo and GWT - 01 June 2010

Install Google Web Toolkit (GWT) into your project

• roo>gwt setup

Page 12: Bucharest GTUG - Roo and GWT - 01 June 2010

Run Roo project

> mvn gwt:compile

> mvn gwt:run

Page 13: Bucharest GTUG - Roo and GWT - 01 June 2010

Roo docs

• http://www.springsource.org/roo

• roo-1.1.0.M1\docs\pdfspring-roo-docs.pdf

Page 14: Bucharest GTUG - Roo and GWT - 01 June 2010

Thanks! Petrica Clement Chiriac (Tica2)petrica (at) gtugs.org http://twitter.com/Tica2

Bucharest GTUG

Questions …

Page 15: Bucharest GTUG - Roo and GWT - 01 June 2010

Next Bucharest GTUG event! Tuesday 6 July 2010 at Bucharest Hubb (19:00)

Agenda:• Proposals• Android ?

Bucharest