Referencing a Backing Bean Method

A component tag has a set of attributes for referencing backing bean methods that can perform certain functions for the component associated with the tag. These attributes are summarized in Table 18-10.

Table 18-10. Component Tag Attributes that Reference Backing Bean Methods
AttributeFunction
actionRefers to a backing bean method that performs navigation processing for the component and returns a logical outcome String
actionListenerRefers to a backing bean method that handles ActionEvents
validatorRefers to a backing bean method that performs validation on the component's value
valueChangeListenerRefers to a backing bean method that handles ValueChangeEvents

Only components that implement ActionSource can use the ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.