title: Call a JSF method via JS
body: <p>i have a for loop in JS code, i want to call a method with parameters written in a JAVA managed bean that calculate a value and return a new one that will be used in the JS
  Note: i'm using primefaces in the xhtml page
  and handsontable to display data</p>
  
  <p>that's how my js looks like</p>
  
  <pre><code>function updateMoneyValue(){
     var thetable; //the handsonTable
     for (var i =0 ; i &lt; thetable.length ; i++)
        {
           var myNewValue = theBeanMethod (firstParam , secondParam);
        }
  }
  </code></pre>