title: a4j:commandLink with onClick return true or false not properly working
body: <p>My code is like below,</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a4j:commandLink  oncomplete="openSignatureModel();" id="requestText"  reRender="sigPassword"  title="Send Prescription"
  actionListener="#{patientNotePresBackingBean.sendPrescriptionId}"
  onclick="return pharmacyCheck('#{row}');"&gt; 
  &lt;f:param name="sendPrescriptionId" value="#{patientNotePrescriptionVar.id}" /&gt;
  &lt;f:param name="processOfPrescription" value="Send" /&gt;
  &lt;h:graphicImage value="/images/send-prescribe.png" style="border:0;"&gt;&lt;/h:graphicImage&gt;
  &lt;/a4j:commandLink&gt;
  </code></pre>
  
  <p>and my java script is like...</p>
  
  <pre><code>function pharmacyCheck(rowID) {
      var a = document.getElementById("prescriptionId:patientNotePresListId:"+rowID+":pharmacyRcopiaId");
      if(a.value == -1) {
          alert("Please select Pharmacy");
          return false;
      } else {
          return true;
      }
  
  }
  </code></pre>
  
  <p>Actually when it returns true it should call <strong>patientNotePresBackingBean.sendPrescriptionId</strong>  right?</p>
  
  <p>But it's not calling the same.... Is there any reason why?</p>