JBoss.orgCommunity Documentation
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.
disabled
Specifies whether the component is disabled, which disallows user interaction.
focus
References the id
of an element on which to focus after a request is completed on the client side.
height
The height of the component in pixels.
dir
Specifies the direction in which to display text that does not inherit its writing direction. Valid values are LTR
(left-to-right) and RTL
(right-to-left).
style
Specifies Cascading Style Sheet (CSS) styles to apply to the component.
styleClass
Specifies one or more CSS class names to apply to the component.
width
The width of the component in pixels.
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.