Asynchronous JavaScript and XML (AJAX) with Java 2 Enterprise
Edition
AJAX uses JavaScript in an HTML page to make asynchronous calls to the
server from which the page
loaded and fetch an XML document from a server-side component
asynchronously. Upon completion of a request
JavaScript may update or modify the Document Object Model (DOM) of the
HTML page based on the resulting
XML document. Only the affected portions of the HTML DOM are are
re-rendered in the HTML page.
The term Asynchronous JavaScript and XML has emerged recently to
describe this interaction model.
For a general explanation of AJAX, please see Using
AJAX with the J2EE platform. If you are new
to AJAX, we recommend that you read that document before reading
the following solutions.
Note that AJAX is an emerging technology, and hence the
solutions presented here are likely to change as best practices
emerge.
Each entry in the catalog has a problem and
solution document that discusses the key issues in the problem topic,
provides various strategies for the solution, and includes some
the design discussion of a sample application. Each entry in the
catalog has a sample application illustrating
the ideas in the catalog.
Here is a list of the entries in AJAX category for this
release. More entries can be found at the
Java BluePrints Solutions
Catalog project hosted on java.net.
- Using JavaServer Faces Technology
Discuss the different strategies for using AJAX with JSF
- Using PhaseListener Approach for JSF
Using PhaseListener Approach for JavaServer Faces Technology with AJAX
- Using a Servlet Controller with JSF
Using a Servlet Controller with JavaServer Faces Technology and AJAX
- Extending Renderer Functionality
Discuss how to extend the renderer in JavaServer Faces the custom component
- Resource Access
Discuss the issues of concern while accessing static and dynamic resources
- Using an AJAX-enabled JSF Component Library
Discuss the issues of concern while using an AJAX-enabled JavaServer
Faces component library
- Handling JavaScript Events
Discuss how to handle event for JavaScript components
- JavaScript Recommendations
JavaScript Conventions and Recommendations