Using Action Listeners
Command components, such as buttons and links, generate actions when clicked. Action listeners are event listeners that define code to execute in response to that action. Action listeners contain code that processes the action event object passed to it by the command component.