JBoss.orgCommunity Documentation

Chapter 12. Output and messages

12.1. <rich:progressBar>
12.1.1. Basic usage
12.1.2. Customizing the appearance
12.1.3. Using set intervals
12.1.4. Update mode
12.1.5. Reference data
12.2. <rich:toolTip>
12.2.1. Basic usage
12.2.2. Attaching the tool-tip to another component
12.2.3. Appearance
12.2.4. Update mode
12.2.5. <rich:toolTip> client-side events
12.2.6. Reference data

Documentation in development

Some concepts covered in this chapter may refer to the previous version of Richfaces, version 3.3.3. This chapter is scheduled for review to ensure all information is up to date.

Read this chapter for details on components that display messages and other feedback to the user.

The <rich:progressBar> component displays a progress bar to indicate the status of a process to the user. It can update either through Ajax or on the client side, and the look and feel can be fully customized.

Figure 12.1. <rich:progressBar>


By default, the minimum value of the progress bar is 0 and the maximum value of the progress bar is 100. These values can be customized using the minValue and maxValue attributes respectively.

The progress bar can be labeled in one of two ways:

For labeling, the <rich:progressBar> component recognizes three macro-substitution parameters:


Additionally, you can use the {param} parameter to specify any custom parameters you require. Define the parameters in the bean for the progress method, then reference it with the <rich:progressBar> component's parameters attribute, as shown in Example 12.5, “Using the param parameter”.


To define customized initial and complete states for the progress bar, use the initial and complete facets. The initial facet displays when the progress value is less than or equal to the minimum value, and the complete facet displays when the progress value is greater than or equal to the maximum value.


The <rich:toolTip> component provides an informational tool-tip. The tool-tip can be attached to any control and is displayed when hovering the mouse cursor over the control.

Figure 12.2. <rich:toolTip>