RichFaces AJAX request indicator with absolute positioning

RichFaces comes with a4j:status tag that allows to show AJAX request status. Here is an example how to create a page-level indicator, in other words, any action from this page will trigger the status to be displayed. It’s one way to tell the user that something is happening. Technically, the a4j:status is associated with the closest a4j:region. By default the entire page is a region (even though we don’t put it on the page).


  
  	all other controls...
  

The status will be displayed in the upper right corner of the browser:

We are only showing a status when a request is being processed. You can also show a status when the request is done (or not executing) by setting stopText attribute. Lastly, if you want to include something other than text, two facets are available to include any content you want: start and status.

5 thoughts on “RichFaces AJAX request indicator with absolute positioning

  1. I think is should work. For portlets, it makes sense to use individual status indicators, otherwise the one indicator could be overloaded by each portlet instance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s