Google Web Toolkit 2 Application Development Cookbook


Google Web Toolkit 2 Application Development Cookbook
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$19.19
save 20%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

 

Book Details

Language : English
Paperback : 244 pages [ 235mm x 191mm ]
Release Date : November 2010
ISBN : 1849512000
ISBN 13 : 9781849512008
Author(s) : Shamsuddin Ahammad
Topics and Technologies : All Books, Google, Web Development, Cookbooks, Java, Open Source


Table of Contents

Preface
Chapter 1: Setting up the GWT Environment in NetBeans
Chapter 2: Creating Home Page with Panels and Menus
Chapter 3: Forms with Layout and Widgets
Chapter 4: Handling your First Events
Chapter 5: Creating Database for Sales Processing
Chapter 6: Managing Entities using JPA
Chapter 7: Communicating with the Server using GWT RPC
Chapter 8: Reporting with iReport
Chapter 9: Deploying a GWT Application
Chapter 10: Using Speed Tracer
Index
  • 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 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

Shamsuddin Ahammad

Shamsuddin Ahammad is a Senior Lecturer and the Course Coordinator at Daffodil Institute of IT, Bangladesh. He has been teaching Java, Programming Methods, and Database Systems since 2002. He has experience in supervising hundreds of academic projects. Shamsuddin has a Masters degree in Management Information Systems (MIS) from Daffodil International University, Dhaka. He obtained the BSc(Hons) degree in Computing & Information Systems (CIS) of NCC Education Ltd, UK and London Metropolitan University joint programme from Daffodil Institute of IT. Before that, he completed the IDCS & IADCS of NCC Education Ltd. He is an Additional Reviewer of Conference on Quality Engineering in Software Technology (CONQUEST) organized by International Software Quality Institute (iSQI) in Germany. He is the author of book titled iReport 3.7 published from PACKT Publishing in March 2010.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 12 Apr 2013

Page: 72 | Errata type: Typo

Replace
the constructor of the SalesForm class
by
the constructor of the EmployeeForm class

Page: 73 | Errata type: Typo

Replace
Listener buttonEventListener=new new
by
Listener buttonEventListener=new

Page: 82 | Errata type: Typo

Replace
dateOfBirtField is an instance of the
by
dateOfBirthField is an instance of the

Page: 84 | Errata type: Typo

Replace
ageField.setValue(year+"" year ""+month+"" month ""+day+"day"")
by
ageField.setValue(year+" year "+month+" month "+day+"day")

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Google Web Toolkit 2 Application Development Cookbook +    Mobile Web Development =
50% Off
the second eBook
Price for both: €22.10

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

Create impressive web applications with tool bars, menus, multiple windows, and more with this step-by-step guide.

Approach

The recipes in this book are in a straightforward and easy to follow format.The range of topics covered in this book will bring out the forward-thinking Java developer in you.

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software