previous | index | next

The actionListener Attribute

The Rushmore application uses a button with an image, action, and actionListener attribute:
       <h:commandButton image="mountrushmore.jpg"
          actionListener="#{rushmore.handleMouseClick}"
          action="#{rushmore.navigate}" ... />

The handleMouseClick method:

The navigate method:


previous | index | next