BT

Four Ways to Ajax Enable a Java EE Application

by Rob Thornton on Jan 10, 2007 |

Sun's Developer Network posted a series of four articles late last year on different ways to add Ajax to a Java EE application. Each article covers a different way of adding in Ajax, including do-it-yourself, using Dojo, JSF components, and JSF phase listeners.

Artima has a nice write-up of the series. All of the articles use NetBeans and GlassFish and walk through all of the steps of each technique. These articles build off of the Ajax Design Strategies article Sun posted in October.

The techniques covered are:

  1. Setting up the NetBeans project and deploying the application on GlassFish. It then goes on to show how to generate the XMLHttpRequest object and how to respond to it via a servlet.
  2. Dojo and the advantages of having it handle events for you as well as browser differences. While the article does not make use of many of Dojo's features, they are noted.
  3. Using a JSF component
  4. JSF phase listeners and their pros and cons as opposed to a straight JSF component.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT