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 ...

Get Beginning JSF™ 2 APIs and JBoss® Seam now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.