How to assign unique IDs to the items in <h:dataTable> ?
Hello,
I have such a dataTable where I need to assign aunique id attribute to the <c:chart> component.
There should be one c:chart component on every line and I do not
how to set the ID, this way does not work: id="#{tableData.id}".
It seems that it cannot be a dynamic value.
I am using JSF 1.1 (Tomcat 5.5). The id attribute is obligatory.
<h:dataTable id="table2" value="#{Page2.dataItemList}" var="tableData">
<h:column>
<f:facet name="header">
<h:outputText title="id" />
</f:facet>
<h:outputText value="#{tableData.id}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText title="chart" />
</f:facet>
<c:chart id="?" datasource="#{Page2.series}" type="xyline" background="#FFFFCC" title="one of the charts"></c:chart>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText title="name" />
</f:facet>
<h:outputText value="#{tableData.name}" />
</h:column>
</h:dataTable>

