This article shows you how to control traffic to the server using the RichFaces queue. Here is an excerpt:


When building an Ajax application in JSF, one of the things you need to consider is how to control traffic to the server. Although Ajax applications make the application richer, quicker, and more interactive, in many instances the end user is not aware that the client (browser) is sending Ajax requests to the server. For example, if an input field fires an Ajax event on the onkeyup event, the user can easily flood the server with to many requests without even knowing it. This is also true of a regular button that fires an Ajax request. In a traditional (non-Ajax) application, the user is more aware that a request was sent. In such an application, the browser window could go blank for a fraction of a second while the next page is loaded. In other words, there is visual clue that page was submitted. But if the button fires an Ajax request, the page is not reloaded. The user could be clicking the button every second and not realizing that he or she is firing new requests each time. If multiple requests are fired almost at the same time, there is no guarantee they will be processed in the same order without any additional work on the server.



Read the full article  here:  http://www.jsfcentral.com/articles/richfaces_queue.html


Kito D. Mann -- Author, JavaServer Faces in Action

http://twitter.com/kito99  http://twitter.com/jsfcentral

http://www.virtua.com - JSF/Java EE consulting, training, and mentoring

http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

+1 203-404-4848 x3