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.
disabledSpecifies 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.
heightThe 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).
styleSpecifies Cascading Style Sheet (CSS) styles to apply to the component.
styleClassSpecifies one or more CSS class names to apply to the component.
widthThe 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.