title: How to avoid preRenderView method call in ajax request?
body: <p>I need to call a method in backing bean while the page loads. I achieved it using </p>
  
  <pre><code>&lt;f:event listener="#{managedBean.onLoad}" type="preRenderView"&gt;
  </code></pre>
  
  <p>But whenever an ajax request is made in the page, that method get invoked again. I don't need it in my requirement. How to avoid that method call in ajax request?</p>