Szczegóły ebooka

Google Web Toolkit 2 Application Development Cookbook. 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. Over 70 simple but incredibly effective practical recipes to develop web applications using GWT with JPA , MySQL and i Report

Shamsuddin Ahammad

Ebook
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.
  • Google Web Toolkit 2 Application Development Cookbook
    • 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...
        • Theres 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
  • Tytuł: Google Web Toolkit 2 Application Development Cookbook. Over 70 simple but incredibly effective practical recipes to develop web applications using GWT with JPA , MySQL and i Report
  • Autor: Shamsuddin Ahammad
  • Tytuł oryginału: Google Web Toolkit 2 Application Development Cookbook. Over 70 simple but incredibly effective practical recipes to develop web applications using GWT with JPA , MySQL and i Report
  • ISBN: 9781849512015, 9781849512015
  • Data wydania: 2010-11-24
  • Format: Ebook
  • Identyfikator pozycji: e_3cmk
  • Wydawca: Packt Publishing