Skip to main content


developerWorks  >  Open source | Java technology | Web development | WebSphere  >

Build Apache Geronimo applications using JavaServer Faces, Part 3: Add Ajax functionality with Ajax4jsf

developerWorks

Level: Intermediate

Dale de los Reyes (dreyes4@hotmail.com), Freelance Writer, Freelance

17 Oct 2006

Register now or sign in using your IBM ID and password.

In the first two installments of this five-part tutorial series you explored JavaServer™ Faces (JSF) -- a new Java-based framework that makes it easier to build graphical user interfaces (GUIs) for Java™ Platform, Enterprise Edition (Java EE) applications -- built and successfully deployed a simple JSF application on Apache Geronimo, and learned how to integrate Apache Tomahawk -- which provides several custom, 100% JSF-compatible components -- with your application to improve the interface. In this tutorial, Part 3, you'll get familiar with the Sun Ajax4jsf open source framework, which adds Asynchronous JavaScript™ + XML (Ajax) capabilities to JSF applications without having to write any JavaScript code. You'll use Ajax4jsf to enhance your example application and create an Ajax-enabled front end.

Objectives

Get an introduction to the Sun Ajax4jsf open source framework and learn how to use it to add Ajax capabilities to your Apache Geronimo applications.

Prerequisites

None.


System requirements

You need the following tools to follow along with this tutorial:

  • Part 2 source code so you can add to that application.
  • Geronimo, Apache's Java EE server project. Geronimo comes in Tomcat and Jetty flavors, depending on your needs. We used the Jetty flavor (version 1.1) because it's smaller.
  • MyFaces, Apache's JSF implementation. Download the core version (without Tomcat) from Apache. We used version 1.1.3 with this tutorial.
  • Tomahawk, which provides additional components and input validators for use with MyFaces, while still maintaining 100% JSF compatibility.
  • Eclipse, the extensible open source IDE that supports a wide range of languages and platforms.
  • Eclipse Web Tools Platform (WTP), which adds support for XML and JavaScript editing, as well as preliminary JSF support, to Eclipse.
  • Ajax4jsf, Sun's open source framework for adding Ajax functionality to existing JSF applications. The current version is 1.0rc4 at the time of this writing.
  • Java 1.4 or newer installed on your system. Eclipse binaries come with their own Java run time, but Geronimo and MyFaces don't (that would seriously bloat up the download archives).


Duration

Under 2 hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed

Discuss


My developerWorks needs you!

Connect to your technical community


More in this series:
Build Apache Geronimo applications using JavaServer Faces