Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANNOUNCE: Using the RichFaces Queue

Kito Mann
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:

Kito D. Mann -- Author, JavaServer Faces in Action - JSF/Java EE consulting, training, and mentoring - JavaServer Faces FAQ, news, and info
+1 203-404-4848 x3
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic