A series of four Sun Developer Network articles illustrates different approaches to add Ajax to a legacy J2EE application: hand-coded JavaScript and CSS, using an Ajax toolkit, such as Dojo, encapsulating client-side Ajax interaction in a JSF component, and taking advantage of a JSF phase listener to interact with a managed bean on the server.