Google Web Toolkit 2 Application Development Cookbook
()
About this ebook
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.
Related to Google Web Toolkit 2 Application Development Cookbook
Related ebooks
Advanced UFT 12 for Test Engineers Cookbook Rating: 0 out of 5 stars0 ratingswxPython Application Development Cookbook Rating: 0 out of 5 stars0 ratingsOracle Data Integrator 11g Cookbook Rating: 0 out of 5 stars0 ratingsASP.NET MVC 2 Cookbook Rating: 0 out of 5 stars0 ratingsWiX Cookbook Rating: 0 out of 5 stars0 ratingsMagento 2 Development Cookbook Rating: 0 out of 5 stars0 ratingsASP.NET jQuery Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsDotNetNuke 5.4 Cookbook Rating: 5 out of 5 stars5/5Microsoft Dynamics AX 2012 Development Cookbook Rating: 0 out of 5 stars0 ratingsEntity Framework Core Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsKendo UI Cookbook Rating: 0 out of 5 stars0 ratingsMagento 2 Cookbook Rating: 4 out of 5 stars4/5Processing 2: Creative Programming Cookbook Rating: 4 out of 5 stars4/5BizTalk Server 2010 Cookbook Rating: 0 out of 5 stars0 ratingsJoomla! 1.5 Cookbook Rating: 0 out of 5 stars0 ratingsLift Application Development Cookbook Rating: 0 out of 5 stars0 ratingsOracle E-Business Suite R12 Core Development and Extension Cookbook Rating: 0 out of 5 stars0 ratingsEmber.js Cookbook Rating: 0 out of 5 stars0 ratingsCodeIgniter 2 Cookbook Rating: 0 out of 5 stars0 ratingsCakePHP 1.3 Application Development Cookbook Rating: 0 out of 5 stars0 ratingsPhpStorm Cookbook Rating: 0 out of 5 stars0 ratingsJIRA Development Cookbook - Third Edition Rating: 0 out of 5 stars0 ratingsAndroid Application Development Cookbook - Second Edition Rating: 5 out of 5 stars5/5Oracle JDeveloper 11gR2 Cookbook Rating: 0 out of 5 stars0 ratingsCocos2d-x Cookbook Rating: 0 out of 5 stars0 ratingsADempiere 3.6 Cookbook Rating: 0 out of 5 stars0 ratingsHTML5 Graphing and Data Visualization Cookbook Rating: 0 out of 5 stars0 ratingsService Worker Development Cookbook Rating: 0 out of 5 stars0 ratingsData Visualization with D3.js Cookbook Rating: 0 out of 5 stars0 ratingsWindows Application Development Cookbook Rating: 0 out of 5 stars0 ratings
Information Technology For You
How To Use Chatgpt: Using Chatgpt To Make Money Online Has Never Been This Simple Rating: 0 out of 5 stars0 ratingsHow to Write Effective Emails at Work Rating: 4 out of 5 stars4/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Summary of Super-Intelligence From Nick Bostrom Rating: 5 out of 5 stars5/5Panda3d 1.7 Game Developer's Cookbook Rating: 0 out of 5 stars0 ratingsSupercommunicator: Explaining the Complicated So Anyone Can Understand Rating: 3 out of 5 stars3/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5Windows Registry Forensics: Advanced Digital Forensic Analysis of the Windows Registry Rating: 4 out of 5 stars4/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Eleventh Hour Linux+: Exam XK0-003 Study Guide Rating: 4 out of 5 stars4/5Handbook of Digital Forensics and Investigation Rating: 4 out of 5 stars4/5Inkscape Beginner’s Guide Rating: 5 out of 5 stars5/5Computer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5CompTIA A+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Core 1 Exam 220-1101 Rating: 0 out of 5 stars0 ratingsCybersecurity for Beginners : Learn the Fundamentals of Cybersecurity in an Easy, Step-by-Step Guide: 1 Rating: 0 out of 5 stars0 ratingsPractical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5CompTIA Network+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008 Rating: 0 out of 5 stars0 ratingsChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5The Power of Pull (Review and Analysis of Hagel, Brown and Davison's Book) Rating: 5 out of 5 stars5/5Investigating Child Exploitation and Pornography: The Internet, Law and Forensic Science Rating: 5 out of 5 stars5/5Health Informatics: Practical Guide Rating: 0 out of 5 stars0 ratingsLinux Command Line and Shell Scripting Bible Rating: 3 out of 5 stars3/5SharePoint Designer Tutorial: Working with SharePoint Websites Rating: 1 out of 5 stars1/5Codeless Data Structures and Algorithms: Learn DSA Without Writing a Single Line of Code Rating: 0 out of 5 stars0 ratingsCompTIA Security +: Malware and Malware Infections Rating: 0 out of 5 stars0 ratingsThe Basics of Hacking and Penetration Testing: Ethical Hacking and Penetration Testing Made Easy Rating: 4 out of 5 stars4/5
Reviews for Google Web Toolkit 2 Application Development Cookbook
0 ratings0 reviews
Book preview
Google Web Toolkit 2 Application Development Cookbook - Shamsuddin Ahammad
Table of Contents
Google Web Toolkit 2 Application Development Cookbook
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Setting up the GWT Environment in NetBeans
Introduction
Installing JDK
Getting ready
How to do it...
Installing GWT SDK
Important features
Getting ready
How to do it...
Installing GlassFish
Getting ready
How to do it...
There's more...
See also
Installing MySQL server
Getting ready
How to do it...
Configuring the MySQL Server
Getting ready
How to do it...
Installing NetBeans IDE
Getting ready
How to do it...
Adding the GlassFish server in NetBeans
Getting ready
How to do it...
There's more...
Installing the GWT4NB plugin in NetBeans
Getting ready
How to do it...
Creating a GWT project in NetBeans
Getting ready
How to do it...
How it works...
Directory and file structure
Running the project
Adding Ext GWT
Getting ready
How to do it...
How it works...
See also
2. Creating Home Page with Panels and Menus
Introduction
Creating the home page layout class
Getting ready
How to do it...
How it works...
There's more...
Setting the size of the panel
Showing or hiding header in the content panel
BorderLayoutData
Classes and packages
See also
Adding the banner
Getting ready
How to do it...
How it works...
See also
Adding menus
How to do it...
How it works...
See also
Creating the left-hand sidebar
How to do it...
How it works...
See also
Creating the right-hand sidebar
How to do it...
How it works...
See also
Creating the main content panel
How to do it...
How it works...
See also
Creating the footer
How to do it...
How it works...
VerticalPanel
Setting alignment for VerticalPanel
See also
Using the HomePage instance in EntryPoint
Getting ready
How to do it...
How it works...
EntryPoint
RootPanel
Class and packages
See also
3. Forms with Layout and Widgets
Introduction
Using widgets
How to do it...
Using TextField
How to do it...
How it works...
There's more...
Using TextField for password
Creating a read-only TextField
Using a simple combo box
How to do it...
How it works...
Using the radio button
How to do it...
Using DateField
How to do it...
How it works...
Creating a simple form
How to do it...
How it works...
Creating a form with two columns
How to do it...
How it works...
Creating a TabPanel to show forms as tabs
Getting ready
How to do it...
How it works...
See also
Creating a navigation sidebar with Accordion layout
Getting ready
How to do it...
How it works...
See also
4. Handling your First Events
Introduction
Handling ButtonEvent
How to do it...
How it works...
There's more...
See also
Using the SelectionChange event
How to do it...
How it works...
See also
Handling FieldEvent
Getting ready
How to do it...
How it works...
See also
Working with the KeyUp event
Getting ready
How to do it...
How it works...
There's more...
See also
Handling ChangeEvent
Getting ready
How to do it...
How it works...
See also
Working with MenuEvent
Getting ready
How to do it...
How it works...
See also
Using FocusEvent
How to do it...
How it works...
See also
Handling the DatePicker event
Getting ready
How to do it...
How it works...
See also
5. Creating Database for Sales Processing
Introduction
Designing the database for sales processing
Creating the database
Getting ready
How to do it...
There's more...
Creating database using MySQL Command Line Client
See also
Creating tables with primary key
How to do it...
Creating tables from MySQL Command Line Client
See also
Defining foreign keys
Getting ready
How to do it...
There's more...
Creating all the other tables using MySQL Query Browser
Creating all the other tables in Command Client
Backing up database
How to do it...
How it works...
See also
Restoring database
Getting ready
How to do it...
How it works...
See also
6. Managing Entities using JPA
Introduction
JPA in GWT
Uses
Creating a database connection in NetBeans
Getting ready
How to do it...
Direct URL Entry
Creating a persistence unit
Getting ready
How to do it...
How it works...
EclipseLink
EclipseLink JPA
Data source
persistence.xml
sun-resources.xml
Creating entity classes from the database
Getting ready
How to do it...
How it works...
Named query
Entity classes
Sales.java
SalesDetails.java
SalesDetailsPK.java
Creating controller classes
Getting ready
How to do it...
How it works...
Entity manager
Entity manager factory
Controller class for sales entity
Importing packages
Defining a constructor
Creating the entity manager
Defining a method to persist object
Defining a method to edit object
Defining method to remove object
Defining methods for finding objects
7. Communicating with the Server using GWT RPC
Introduction
Creating DTO classes
Getting ready
How to do it...
Mapping entity classes and DTOs
Getting ready
How to do it...
There's more...
Creating the GWT RPC Service
Getting ready
How to do it...
How it works...
Defining an RPC method to persist objects
Getting ready
How to do it...
How it works...
Calling the RPC method from Client UI
How to do it...
How it works...
Finding an entity
How to do it...
How it works...
Updating an entity
How to do it...
How it works...
Deleting an entity
How to do it...
How it works...
Managing a list for RPC
How to do it...
How it works...
See also
Authenticating a user through username and password
Getting ready
How to do it...
How it works...
8. Reporting with iReport
Introduction
Important features
Installing iReport plugins in NetBeans
Getting ready
How to do it...
How it works...
Creating a report
How to do it...
How it works...
Adding a parameter in a report
Getting ready
How to do it...
How it works...
Adding a subreport
Getting ready
How to do it...
How it works...
Adding a variable
Getting ready
How to do it...
How it works...
Showing a report in the GWT application as HTML
Getting ready
How to do it...
How it works...
Creating HTML report viewer
How to do it...
How it works...
Calling HtmlReportViewer
Getting ready
How to do it...
How it works...
Showing a report in a GWT application as PDF
How to do it...
How it works...
Creating a PDF report viewer
How to do it...
How it works...
Calling PdfReportViewer
Getting ready
How to do it...
How it works...
9. Deploying a GWT Application
Introduction
Building a project and creating the WAR file
Getting ready
How to do it...
How it works...
Deploying on the GlassFish Server from NetBeans
Getting ready
How to do it...
How it works...
Creating the JDBC Connection Pool in GlassFish
Getting ready
How to do it...
How it works...
Creating a JDBC Resource in GlassFish Server
Getting ready
How to do it...
Deploying the WAR file in the GlassFish Server
Getting ready
How to do it...
How it works...
10. Using Speed Tracer
Introduction
Installing Speed Tracer
Getting ready
How to do it...
How it works...
See also
Running Speed Tracer
Getting ready
How to do it...
How it works...
There's more...
See also
Analyzing event details
Getting ready
How to do it...
See also
Analyzing network
Getting ready
How to do it...
How it works...
See also
Understanding hints
Getting ready
How to do it...
See also
Index
Google Web Toolkit 2 Application Development Cookbook
Google Web Toolkit 2 Application Development Cookbook
Copyright © 2010 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2010
Production Reference: 1191110
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-849512-00-8
www.packtpub.com
Cover Image by Vinayak Chittar ( <vinayak.chittar@gmail.com> )
Credits
Author
Shamsuddin Ahammad
Reviewers
Ventsislav Chochev
Yiwen Ng (Tony)
Jagmohan Purohit
Acquisition Editor
Dilip Venkatesh
Development Editor
Neha Mallik
Technical Editor
Krutika Katelia
Copy Editor
Neha Shetty
Indexer
Tejal Daruwale
Editorial Team Leader
Akshara Aware
Project Team Leader
Ashwin Shetty
Project Coordinator
Michelle Quadros
Proofreader
Clyde Jenkins
Graphics
Nilesh Mohite
Production Coordinator
Kruthika Bangera
Cover Work
Kruthika Bangera
About the Author
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 B.Sc. (Hons) degree in Computing and Information Systems (CIS) from NCC Education Ltd, U.K. and London Metropolitan University in a joint program from the Daffodil Institute of IT. Prior to that, he has completed the IDCS & IADCS of NCC Education Ltd. He is an Additional Reviewer of Conference on Quality Engineering in Software Technology (CONQUEST) organized by the International Software Quality Institute (iSQI) in Germany. He is the author of the book titled iReport 3.7, published by Packt Publishing in March, 2010.
Extraordinary moral support from my respected parents, Md. Saidur Rahaman and Suriya Begum, is my greatest inspiration to write this book. My loving wife, Jesmin Rashid, has played a great role in my progression.
My brother and sisters, relatives, friends,