title: How do I pass JSF managed bean properties to a JavaScript function?
body: <p>I would like to know how I can pass JSF managed bean properties to a JavaScript function.</p>
  
  <p>Something like this:</p>
  
  <pre><code>&lt;script&gt;
    function actualizaMenu(key){
      #{linkedMenu.setKey(key)}
    }
  &lt;/script&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;ul&gt;
    &lt;ui:repeat value="#{moduleList.modulos}" var="entity"&gt;
      &lt;li&gt;
        &lt;a onclick="actualizaMenu(#{entity.key})"&gt;#{entity.nombre}&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ui:repeat&gt;
  &lt;/ul&gt;
  </code></pre>