title: Set id of a component within JSF dataTable to value from current item in the array
body: <p>I'm having a datatable where I would like to set the id of each row to the id of the current item (object that has an id field) in the array that builds the table.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;h:dataTable
     value="#{bean.list}"
     var="item"&gt;
        &lt;h:column&gt;
           &lt;h:outputText id="#{item.id}" .... /&gt;
        &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>This doesn't work as I get: <code>javax.servlet.ServletException: Empty id attribute is not allowed</code>.</p>
  
  <p>Is it not possible to set the id this way due to how JSF builds its id's, or am I doing something wrong?</p>