title: Disable Button postback in JSF2.0
body: <p>My JSF page is as follows</p>
  
  <pre><code>   &lt;h:head&gt;
          &lt;title&gt;Ajax Test&lt;/title&gt;
      &lt;h:outputScript name="giveEffect.js" library="jquery"/&gt;
      &lt;h:outputScript name="jquery.js" library="jquery"/&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;div id="div1"&gt;
          &lt;h:button id="b1" onclick=" button1Click(this)" value="#{kp.firstname}"/&gt;
      &lt;h:button id="b2" onclick="button1Click(this)" value="#{kp.home}"/&gt;
      &lt;/div&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>button1Click is a jquery function which does ajax call and updates my page. But unable to see ajax update. Due to postback/jsf life cylce call, I changes are getting lost.</p>
  
  <p>On inspecting the Dom using firebug. I found the  following code.</p>
  
  <pre><code>&lt;div id="div1"&gt;
  &lt;input id="b1" type="button" value="Kar" onclick="button1Click(this); window.location.href='/AJAXTest/faces/index.xhtml'; return false;"&gt;
  &lt;input id="b2" type="button" value="Alike" onclick="button1Click(this); window.location.href='/AJAXTest/faces/index.xhtml'; return false;"&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>Suppose I eliminate window.location.href='/AJAXTest/faces/index.xhtml' using firebug I get the expected output.</p>
  
  <p>Is there any tag or mechanism to remove postback call? </p>