title: How to invoke a JSF managed bean on a HTML DOM event using native JavaScript?
body: <p>I need to execute a JSF managed bean action method using ajax during HTML DOM <code>load</code> event, similar to jQuery's <code>$(document).ready(function() { $.ajax(...) })</code>. I can only use the JavaScript generated by JSF in this project. Is there a way to do it in native JSF? Which event can I use or which JSF ajax function can I use? </p>
  
  <p>I'm using JSF 2.0, Facelets and PrimeFaces.</p>