title: Accessing Javascript variables from JSF
body: <p>I have a JSF file that needs to get populated from the data I get from the JS function that I get from Ajax call to a web-service. The latter part works like a charm. I am able to retrieve the JSON data from the ajax call. I need to parse this json data and take data and use that to populate the JSF. I am unsure as to how I would access the JS variables from the JSF/xhtml. </p>
  
  <p>Is is possible to do it in someway? I was going through some DWR stuff that would send ajax post from JS to the Java bean and I could use the bean variable from the JSF. But, I want to know if there is any other way of doing this. </p>
  
  <p>I would greatly appreciate any help. I am using JSF 2.x btw.  </p>
  
  <p>Thanks,
  S.</p>