O'Reilly logo

Beginning JSF™ 2 APIs and JBoss® Seam by Kent Ka Iok Tong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  7

image

Building Interactive Pages with Ajax

In this chapter, you'll learn how to build pages that are more interactive than normal HTML pages using a technique called Ajax.

Displaying a FAQ

Suppose that you'd like to develop an application that displays a FAQ, as shown in Figure 7-1.

images

Figure 7-1. Displaying a FAQ

Suppose that every question has both a short answer and a long answer. Initially, the short answer is displayed. If the user clicks the question, the answer will change to the long answer. If the user clicks it again, it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required