title: How to add action for h:graphicImage Primefaces
body: <p>Hi I have a graphicalImage and I want a method in the backingBean to be fired up on clicking on the image.Below is the code snippet that i am using but it is not working. Please help.</p>
  
  <pre><code>&lt;h:graphicImage value="../resources/images/delete_button.png"
  onclick="editBean.deleteStudyPlan"
  style="float:center;height: 18px; width:20px;"
  title="Delete the studyplan"/&gt;
  </code></pre>