Reputation: 23
i am trying to display list in data rich table my code is
<rich:dataTable value="#{form.tableResultat}"
var="rows" style="width:700px" >
<rich:columnGroup columnClasses="#{rows.classLevel}">
<c:forEach var="index" begin="0" end="3">
<rich:column colspan="#{rows.columns[index].colSpan}" rowspan="#{rows.columns[index].rowSpan}">
<t:outputText value="#{rows.columns[index].colSpan}" />
</rich:column>
</c:forEach>
</rich:columnGroup>
</rich:dataTable>
the problem is that thevar index it is null but when i do replace ${index} it display the value and i can't do ${index} in my code how i fix this and what is the problem
Upvotes: 0
Views: 596
Reputation: 49
first: you have a typo in the line
<t:outputText value="#{rows.columns.[index].colSpan}" />
I think this should look like:
<t:outputText value="#{rows.columns[index].colSpan}" />
have you tried to remove the c:forEach loop and do it hard coded?
Upvotes: 0