BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Four Ways to Ajax Enable a Java EE Application

| by Rob Thornton on Jan 10, 2007. Estimated reading time: less than one minute |

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.

Rate this Article

Adoption Stage
Style

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT