JBoss.orgCommunity Documentation

Chapter 17. Functionality extension

17.1. <rich:componentControl>
17.1.1. Basic usage
17.1.2. Passing parameters to API methods
17.1.3. Reference data
17.2. <rich:focus>
17.2.1. Placement
17.2.2. Applying Focus
17.2.3. Validation-Aware
17.2.4. Preserving Focus
17.2.5. Delaying Focus
17.2.6. Focus Manager
17.2.7. Reference data
17.3. <rich:hotKey>
17.3.1. Basic usage
17.3.2. Event processing
17.3.3. Event handlers
17.3.4. Reference data
17.4. <rich:hashParam>
17.4.1. Basic usage
17.4.2. Reference data
17.5. <rich:placeholder>
17.5.1. Reference data

Read this chapter for details on miscellaneous components that provide extended functionality to web applications.

The <rich:componentControl> behavior allows JavaScript API functions to be called on target components. The functions are called after defined events are triggered on the component to with the <rich:componentControl> behavior is attached. Initialization variants and activation events can be customized, and parameters can be passed to the target component.

The <rich:focus> component allows one to focus components on a page. It is intended to be used with any input field.

The <rich:hotKey> component allows one to register hot keys for the page or particular elements and to define client-side processing functions for these keys.

The <rich:hashParam> component allows client-side parameters to be grouped into a hash map. The hash map can then be passed to the client JavaScript API functions of any RichFaces component.

The <rich:placeholder> component allows one to use functionality similar to the HTML5 placeholder attribute for input components.

This component brings a backward compatibility for HTML5 non-compliant browsers and some additional features:

Figure 17.2. <rich:placeholder>