Portada Ajax on Java

Preface ....IX

1. Setup ....1
Requirements ....1
Installing Tomcat ....2
Installing Ant ....3

2. JavaScript for Ajax ....4
Creating the Application ....4
Running the Example ....11

3. A Simple Ajax Servlet ....13
Building and Deploying the Ajax Application ....16
Running the Example ....17

4. XML and JSON for Ajax ....19
The Character Decoder ....19
Setting Up a Simple XML Document ....20
Back on the Client: Mining the XML ....28
Building the Application ....34
Running the Application on Tomcat ....36
Passing Data with JSON ....37
Summary ....40

5. Getting Useful Data ....41
Form Entry with Ajax ....41
Building a Suggestion Field ....50

6. Ajax Libraries and Toolkits ....62
Using the Dojo Toolkit ....63
Using the Rico Toolkit ....69
Using DWR with Ajax ....75
Drag ’n’ Drop with Scriptaculous and Prototype ....80

7. Ajax Tags ....99
Creating a Tag Library ....99
Third-Party Tag Libraries ....110

8. Ajax on Struts ....135
Struts-Layout ....135
Adding Ajax to Struts with DWR ....148
Ajax with Struts: What Have We Learned Here? ....162

9. JavaServer Faces and Ajax ....163
The JSF Lifecycle ....164
Writing a Custom JSF Component ....165
Developing a Custom JSF Tag ....169
Handling JSF Input by Extending HtmlInputText ....177
Writing the JSF Support for Ajax ....179
Summary ....182

10. Google Web Toolkit ....183
Getting Started with GWT ....183
Debugging the Application ....188
Fleshing Out the Application: The Client ....191
Supplying Services to the Client ....196
Testing ZipCodes with the Service ....201
GWT Widgets ....205

Index ....209

© Biblioteca de la UOC