title: JSF, how to use EL in onclick
body: <p>I want to create links using database columns. I have a backing bean where I 'm connecting to the database. There is no problem with the connection and also no problem with the links names. I can see my links on my browser. I want to use onclick function and that's exactly where the problem starts. How can I use or can I use EL in onclick?</p>
  
  <p>A little example:</p>
  
  <pre><code>&lt;h:dataTable rows="7" value="#{frontSiteMenu.links}" var="row"
      styleClass="sitemenu" width="200"&gt;
      &lt;h:column&gt;
          &lt;a href="#" onclick="dispNewsGroup('${row.newsGroupId}')"&gt;&lt;h:outputText value='#{row.newsGroup}' /&gt;&lt;/a&gt;
      &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>Thanks.</p>