Google Web Toolkit 2 Application Development Cookbook

Google Web Toolkit book and eBook - over 70 simple but incredibly effective practical recipes to develop web applications using GWT with JPA , MySQL and i Report

Google Web Toolkit 2 Application Development Cookbook

Cookbook
Shamsuddin Ahammad

Google Web Toolkit book and eBook - over 70 simple but incredibly effective practical recipes to develop web applications using GWT with JPA , MySQL and i Report
$19.20
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849512008
Paperback244 pages

About This Book

  • Create impressive, complex browser-based web applications with GWT 2
  • Learn the most effective ways to create reports with parameters, variables, and subreports using iReport
  • Create Swing-like web-based GUIs using the Ext GWT class library
  • Develop applications using browser quirks, Javascript,HTML scriplets from scratch
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

 

Who This Book Is For

If you want to build AJAX web applications with GWT then this book is for you.
Developers with prior programming experience of Java development and object-oriented programming will find this book very useful.

Table of Contents

Chapter 1: Setting up the GWT Environment in NetBeans
Introduction
Installing JDK
Installing GWT SDK
Installing GlassFish
Installing MySQL server
Configuring the MySQL Server
Installing NetBeans IDE
Adding the GlassFish server in NetBeans
Installing the GWT4NB plugin in NetBeans
Creating a GWT project in NetBeans
Adding Ext GWT
Chapter 2: Creating Home Page with Panels and Menus
Introduction
Creating the home page layout class
Adding the banner
Adding menus
Creating the left-hand sidebar
Creating the right-hand sidebar
Creating the main content panel
Creating the footer
Using the HomePage instance in EntryPoint
Chapter 3: Forms with Layout and Widgets
Introduction
Using widgets
Using TextField
Using a simple combo box
Using the radio button
Using DateField
Creating a simple form
Creating a form with two columns
Creating a TabPanel to show forms as tabs
Creating a navigation sidebar with Accordion layout
Chapter 4: Handling your First Events
Introduction
Handling ButtonEvent
Using the SelectionChange event
Handling FieldEvent
Working with the KeyUp event
Handling ChangeEvent
Working with MenuEvent
Using FocusEvent
Handling the DatePicker event
Chapter 5: Creating Database for Sales Processing
Introduction
Creating the database
Creating tables with primary key
Defining foreign keys
Backing up database
Restoring database
Chapter 6: Managing Entities using JPA
Introduction
Creating a database connection in NetBeans
Creating a persistence unit
Creating entity classes from the database
Creating controller classes
Chapter 7: Communicating with the Server using GWT RPC
Introduction
Creating DTO classes
Mapping entity classes and DTOs
Creating the GWT RPC Service
Defining an RPC method to persist objects
Calling the RPC method from Client UI
Finding an entity
Updating an entity
Deleting an entity
Managing a list for RPC
Authenticating a user through username and password
Chapter 8: Reporting with iReport
Introduction
Installing iReport plugins in NetBeans
Creating a report
Adding a parameter in a report
Adding a subreport
Adding a variable
Showing a report in the GWT application as HTML
Creating HTML report viewer
Calling HtmlReportViewer
Showing a report in a GWT application as PDF
Creating a PDF report viewer
Calling PdfReportViewer
Chapter 9: Deploying a GWT Application
Introduction
Building a project and creating the WAR file
Deploying on the GlassFish Server from NetBeans
Creating the JDBC Connection Pool in GlassFish
Creating a JDBC Resource in GlassFish Server
Deploying the WAR file in the GlassFish Server
Chapter 10: Using Speed Tracer
Introduction
Installing Speed Tracer
Running Speed Tracer
Analyzing event details
Analyzing network
Understanding hints

What You Will Learn

  • Set up and configure GWT SDK, GlassFish server, MySQL server, NetBeans, GWT4NB, Ext GWT , iReport plugins for developing the business application in GWT
  • Design a database for sales processing system in MySQL, back up and restore the database
  • Identify business entities and the relationships and constraints among them
  • Handle events such clicking on buttons, typing in text fields, selecting items in a combo box, selecting radios, selecting menus, and selecting toolbar icons
  • Manage entities using entity framework through Java Persistence API (JPA)
  • Use iReport for any GWT application to get the output of the reports in both HTML and PDF format
  • Create Graphical User Interface (GUI) for accepting user input and display information to the user using Ext GWT
  • Control communication between the server and client using GWTRPC mechanism
  • Create a WAR file for GWT application and deploy it in Glassfish server

In Detail

GWT 2 radically improves web experience for users by using existing Java tools to build no-compromise AJAX for any modern browser. It provides a solid platform so that other great libraries can be built on top of GWT. Creating web applications efficiently and making them impressive, however, is not as easy as it sounds. Writing web applications for multiple browsers can be quite tasking. In addition, building, reusing, and maintaining large JavaScript code bases and AJAX components can be difficult.

GWT 2 Application Development Cookbook eases these burdens by allowing developers to quickly build and maintain complex yet highly efficient JavaScript front-end applications in the Java programming language . It tells you how to make web experience all the more thrilling and hassle free, using various tools along with GWT SDK.

This book starts with developing an application from scratch. Right from creating the layout of the home page to home page elements including left and right sidebars, to placing tree like navigational menu, menu bars, tool bars, banners, footers are discussed with examples.

You will see how to create forms using the Ext GWT library widgets and handle different types of events. Then you will move on to see how to design a database for sales processing systems and learn to create the database in MySQL with the help of easy–to-follow recipes.

One of the interesting topics of this book is using JPA in GWT. Using the JPA object in GWT is a challenge. To use them perfectly, a mechanism to convert the JPA object into plain object and vice versa is required. You will see recipes to use entity classes, entity managers, and controller classes in GWT application. You will efficiently create reports with parameters, variables and subreports, and get the report output in both HTML and PDF format using real-world recipes.

You will then learn to configure the GlassFish server to deploy a GWT application with database. Finally, learn how to trace speed and improve perfomance in web applications using tracing techniques.

Authors

Table of Contents

Chapter 1: Setting up the GWT Environment in NetBeans
Introduction
Installing JDK
Installing GWT SDK
Installing GlassFish
Installing MySQL server
Configuring the MySQL Server
Installing NetBeans IDE
Adding the GlassFish server in NetBeans
Installing the GWT4NB plugin in NetBeans
Creating a GWT project in NetBeans
Adding Ext GWT
Chapter 2: Creating Home Page with Panels and Menus
Introduction
Creating the home page layout class
Adding the banner
Adding menus
Creating the left-hand sidebar
Creating the right-hand sidebar
Creating the main content panel
Creating the footer
Using the HomePage instance in EntryPoint
Chapter 3: Forms with Layout and Widgets
Introduction
Using widgets
Using TextField
Using a simple combo box
Using the radio button
Using DateField
Creating a simple form
Creating a form with two columns
Creating a TabPanel to show forms as tabs
Creating a navigation sidebar with Accordion layout
Chapter 4: Handling your First Events
Introduction
Handling ButtonEvent
Using the SelectionChange event
Handling FieldEvent
Working with the KeyUp event
Handling ChangeEvent
Working with MenuEvent
Using FocusEvent
Handling the DatePicker event
Chapter 5: Creating Database for Sales Processing
Introduction
Creating the database
Creating tables with primary key
Defining foreign keys
Backing up database
Restoring database
Chapter 6: Managing Entities using JPA
Introduction
Creating a database connection in NetBeans
Creating a persistence unit
Creating entity classes from the database
Creating controller classes
Chapter 7: Communicating with the Server using GWT RPC
Introduction
Creating DTO classes
Mapping entity classes and DTOs
Creating the GWT RPC Service
Defining an RPC method to persist objects
Calling the RPC method from Client UI
Finding an entity
Updating an entity
Deleting an entity
Managing a list for RPC
Authenticating a user through username and password
Chapter 8: Reporting with iReport
Introduction
Installing iReport plugins in NetBeans
Creating a report
Adding a parameter in a report
Adding a subreport
Adding a variable
Showing a report in the GWT application as HTML
Creating HTML report viewer
Calling HtmlReportViewer
Showing a report in a GWT application as PDF
Creating a PDF report viewer
Calling PdfReportViewer
Chapter 9: Deploying a GWT Application
Introduction
Building a project and creating the WAR file
Deploying on the GlassFish Server from NetBeans
Creating the JDBC Connection Pool in GlassFish
Creating a JDBC Resource in GlassFish Server
Deploying the WAR file in the GlassFish Server
Chapter 10: Using Speed Tracer
Introduction
Installing Speed Tracer
Running Speed Tracer
Analyzing event details
Analyzing network
Understanding hints

Book Details

ISBN 139781849512008
Paperback244 pages
Read More