In my application i need to perform a login action on click of the image.

<h:graphicImage /> is not giving an option of performing action.

Please can any one tell me how to achieve this ?