DWR Java AJAX Applications

DWR Java AJAX Applications
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 30%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Learn Direct Web Remoting features from scratch and how to apply DWR practically
  • Topics such as configuration, testing, and debugging are thoroughly explained through examples
  • Demonstrates advanced elements of creating user interfaces and back-end integration
  • Contains easy-to-understand explanations, realistic examples, and complete demo applications

Book Details

Language : English
Paperback : 228 pages [ 235mm x 191mm ]
Release Date : October 2008
ISBN : 1847192939
ISBN 13 : 9781847192936
Author(s) : Sami Salkosuo
Topics and Technologies : All Books, Application Development, AJAX, Java, Open Source, Web Development

Table of Contents

Chapter 1: Introduction
Chapter 2: DWR Features
Chapter 3: Getting Started
Chapter 4: User Interface: Basic Elements
Chapter 5: User Interface: Advanced Elements
Chapter 6: Backend Integration
Chapter 7: Sample Applications
  • Chapter 2: DWR Features
    • Ease of Use
    • Reverse AJAX
      • Piggyback
      • Polling
      • Comet
    • DWR JavaScript Libraries
      • engine.js
      • util.js
      • gi.js
    • Converters
    • Creators, Filters, and Signatures
    • Integration with Other Projects
    • Security
      • Minimize Risks
    • Summary
  • Chapter 3: Getting Started
    • Supported Browsers and Environments
    • Configuration
      • web.xml
      • dwr.xml
        • Using Creator and Its Attributes
        • Using the Converter Element
        • Working with Annotations
        • Using Fluent Configuration with DWR
    • Setting up a Development Environment
      • Development Environment with DWR and Firefox
      • Development Environment with Eclipse
        • Apache Geronimo
    • Testing and Debugging
    • Error Handling
    • Packaging and Deployment
      • Deployment Using the Administration Console
      • Deployment Using the Deployer Tool
      • Deployment Using Hot Deployment
    • Summary
  • Chapter 4: User Interface: Basic Elements
    • Creating a Dynamic User Interface
      • Creating a New Web Project
      • Configuring the Web Application
      • Developing the Web Application
        • Testing the Web Application
        • Developing Web Pages
      • Callback Functions
      • Afterword
    • Implementing Tables and Lists
      • Server Code for Tables and Lists
      • Client Code for Tables and Lists
      • Testing Tables and Lists
      • Afterword
    • Implementing Field Completion
      • Server Code for Field Completion
      • Client Code for Field Completion
      • Afterword
    • Summary
  • Chapter 5: User Interface: Advanced Elements
    • Creating Forms
      • Developing the User Interface
      • Creating the FormHandler Class
      • Testing the Form
      • Afterword
    • Building a Navigation Tree
      • Developing the User Interface
      • Creating the NavigationTree Class
      • Developing the User Interface, Part 2
      • Testing the Navigation Tree
      • Afterword
    • Map Scrolling Using DWR
      • Developing the User Interface
      • Creating the MapScroller Java Class
      • Testing the Map Scroller
      • Afterword
    • Summary
  • Chapter 6: Backend Integration
    • Integrating a Database with DWR
      • Configuring the Database in Geronimo
      • Creating a CountryDerbyDB Java Class
      • Testing the Database Integration
      • Afterword
    • Integrating with Web Services
      • Developing the Web Service Client
      • Implementing the Web Service Call
      • Testing Web Services Integration
      • Afterword
    • Integrating with a Messaging System
      • Setting up Queues in Geronimo
      • Developing the OrderSystem Java Class
      • Setting up the Application for Messaging
      • Testing with the Backend OrderSystem
      • Afterword
    • Summary
  • Chapter 7: Sample Applications
    • Collaborative Book Authoring
      • Starting the Project
      • Developing the User Interface
        • index.jsp
        • loginFailed.html
        • mainpage.jsp
      • Configuring the Web Application
      • Developing the Java Classes
        • Login.java
        • UserDatabase.java
        • Util.java
        • Book.java
        • BookDatabase.java
      • Testing Collaborative Book Authoring
      • Afterword
    • Chatroom
      • Starting the Project and Configuration
      • Developing the User Interface
      • Developing the Java Code
      • Testing the Chat
      • Afterword
    • Summary

Sami Salkosuo

Sami Salkosuo is a Software IT Architect at IBM Software Group in Finland. He has over ten years of experience in Java, web, and integration technologies.

Sami has written several articles for IBM developerWorks and he is also a coauthor of an IBM Redbook: Portalizing Domino Applications.

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.

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

DWR Java AJAX Applications +    Microsoft Silverlight 4 Business Application Development: Beginner’s Guide =
50% Off
the second eBook
Price for both: £25.35

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

What you will learn from this book

  • Will make your development faster and simpler by teaching you the features of DWR and implementing it with Reverse AJAX.
  • Teaches you how to use DWR JavaScript libraries, Convertors, Creators, Filters and Signatures. Integration with other projects, and Security – factors which are essential to developing any DWR application.
  • Specifies practical aspects such as supported browser and environments, configuration, setting up development environment, testing and debugging, error handling, packaging and deployment in a comprehensive manner, by demonstration where required.
  • Provides a practical demonstration of creating a dynamic user interface, implementing tables and lists, and field completion for you to derive concepts from.
  • Shows advanced elements of user interface through practical examples of creating forms, building a navigation tree, and map scrolling.
  • Teaches back-end integration: integrating a database with DWR, integrating with web services, and integrating with a messaging system.
  • Includes collaborative book authoring and chatroom applications, which show how easy it would be to enhance your applications to production grade using these samples as a starting point for development and as a source of ideas.

In Detail

AJAX enables rich desktop-like user interfaces in the browser and enables interactive interfaces that can even replace traditional user interfaces. DWR (Direct Web Remoting) is an Open Source Java framework for building AJAX applications. DWR's main idea is to hide AJAX implementation details, like XMLHttpRequest, from developers. By using DWR, you can concentrate on developing the application and business objects and leave AJAX details behind the scenes where they belong. DWR allows server-side Java classes to be used in the browser and JavaScript functions to be used on the server (Reverse AJAX).

This book will show competent Java programmers how to work with DWR to create powerful AJAX applications. It starts with a tutorial on DWR's main features and functions. Then it covers setting up the development environment. Finally, it concludes with some sample applications.

The later chapters are full of example code for sample applications, to aid comprehension.

This book covers all the theoretical and practical knowledge required for working with DWR. The book is packed with code and graphics with step-by-step explanations.


The initial part guides the reader through the features of DWR and how it works to make the developer ready for practical implementation. The later part contains plenty of code (with explanations) and graphical interface-driven step-by-step examples, which the reader can try out while surfing through the book to learn by doing.

Who this book is for

This book is written for competent Java developers and assumes that you are a professional rather than hobbyist. You should be familiar with the concepts of programming, Web 2.0, and AJAX.

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