DWR Java AJAX Applications

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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

Author(s): Sami Salkosuo
Year: 2008

Language: English
Pages: 210

Cover......Page 1
Table of Content......Page 8
Preface......Page 12
What is AJAX?......Page 18
DWR: AJAX for Java Developers......Page 20
The DWR Community......Page 22
Summary......Page 23
Chpater 2: DWR Features......Page 24
Piggyback......Page 25
Polling......Page 26
Comet......Page 27
DWR JavaScript Libraries......Page 29
engine.js......Page 30
util.js......Page 31
Converters......Page 34
Creators, Filters, and Signatures......Page 35
Integration with Other Projects......Page 36
Security......Page 37
Minimize Risks......Page 38
Summary......Page 39
Chpater 3: Getting Started......Page 40
web.xml......Page 41
dwr.xml......Page 43
Using Creator and Its Attributes......Page 44
Using the Converter Element......Page 45
Working with Annotations......Page 46
Using Fluent Configuration with DWR......Page 47
Development Environment with Eclipse......Page 48
Testing and Debugging......Page 52
Error Handling......Page 53
Packaging and Deployment......Page 55
Deployment Using the Administration Console......Page 58
Deployment Using the Deployer Tool......Page 61
Summary......Page 62
Creating a Dynamic User Interface......Page 64
Creating a New Web Project......Page 66
Configuring the Web Application......Page 68
Developing the Web Application......Page 70
Testing the Web Application......Page 71
Developing Web Pages......Page 75
Callback Functions......Page 80
Afterword......Page 81
Implementing Tables and Lists......Page 82
Server Code for Tables and Lists......Page 83
Client Code for Tables and Lists......Page 90
Testing Tables and Lists......Page 96
Implementing Field Completion......Page 98
Server Code for Field Completion......Page 99
Client Code for Field Completion......Page 100
Summary......Page 106
Creating Forms......Page 108
Developing the User Interface......Page 109
Creating the FormHandler Class......Page 112
Testing the Form......Page 114
Developing the User Interface......Page 117
Creating the NavigationTree Class......Page 119
Developing the User Interface, Part 2......Page 121
Testing the Navigation Tree......Page 124
Map Scrolling Using DWR......Page 126
Developing the User Interface......Page 128
Creating the MapScroller Java Class......Page 135
Testing the Map Scroller......Page 137
Summary......Page 140
Integrating a Database with DWR......Page 142
Configuring the Database in Geronimo......Page 143
Creating a CountryDerbyDB Java Class......Page 149
Testing the Database Integration......Page 153
Integrating with Web Services......Page 154
Developing the Web Service Client......Page 155
Implementing the Web Service Call......Page 162
Testing Web Services Integration......Page 163
Integrating with a Messaging System......Page 164
Setting up Queues in Geronimo......Page 165
Developing the OrderSystem Java Class......Page 169
Setting up the Application for Messaging......Page 172
Testing with the Backend OrderSystem......Page 174
Summary......Page 176
Collaborative Book Authoring......Page 178
Developing the User Interface......Page 179
index.jsp......Page 181
mainpage.jsp......Page 182
Configuring the Web Application......Page 193
Login.java......Page 195
UserDatabase.java......Page 197
Util.java......Page 198
Book.java......Page 199
BookDatabase.java......Page 201
Testing Collaborative Book Authoring......Page 208
Starting the Project and Configuration......Page 213
Developing the User Interface......Page 214
Developing the Java Code......Page 218
Testing the Chat......Page 220
Summary......Page 222
Index......Page 224