title: How to make onclick work between div tags?
body: <p>I want to call a bean function in <em>onclick</em> between <em>div</em> tag, but as far as I know one cannot simply call nonscript function in this situation. Actually I am putting an <em>facebook like button</em> as:</p>
  
  <pre><code>&lt;div class="fb-like" data-href="#{someBean.getSomeUrl()}" data-send="false" 
      data-layout="button_count" data-width="100" data-show-faces="false"
              onclick="#{someBean.saveLikeCount()}"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I need this kind of <em>onclick</em> operation in order to update and save like count to my database (Facebook automatically increases that number but holds it to itself, so I need to get the count and save it to my database when somebody clicked that like button). Is there a way out ?</p>
  
  <p>Thanks in advance</p>