JBoss.orgCommunity Documentation

Chapter 3. Common features

3.1. Positioning and appearance of components
3.2. Calling available JavaScript methods

This chapter covers those attributes and features that are common to many of the components in the tag libraries.

A number of attributes relating to positioning and appearance are common to several components.

Client-side JavaScript methods can be called using component events. These JavaScript methods are defined using the relevant event attribute for the component tag. Methods are referenced through typical Java syntax within the event attribute, while any parameters for the methods are obtained through the data attribute, and referenced using JSF Expression Language (EL). Example 2.3, “Data reference example” a simple reference to a JavaScript method with a single parameter.

Refer to Section 2.5, “Events and JavaScript interactions” or to event descriptions unique to each component for specific usage.