O'Reilly logo

Practical RichFaces by Max Katz

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

Chapter 4. More a4j: Tags, Concepts, and Features

The previous chapter covered some of the most important concepts behind RichFaces. After reading the chapter, you should be able to use pretty much any RichFaces component. This chapter will cover more a4j: tags and some advanced concepts and features that you might need as you develop your applications.

Controlling Traffic with Queues

Let's review the following example:

<h:inputText value="#{shoppingCart.state}">
    <a4j:support event="onkeyup" reRender="county" />
</h:inputText>

Because a new request is sent on each keystroke, it's possible to start typing really fast and flood the server with requests. That's obviously something you want to know how to avoid.

Two attributes can help you with that: ...

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