This content has been marked as final.
Show 1 reply
-
1. Re: Table with dynamic number of data columns?
michpetrov Nov 10, 2014 3:40 AM (in response to lafr)Hi,
You need to use <c:forEach> to generate a dynamic number of columns, although note that the forEach will not have access to the @var of the table.
<c:forEach var="index" begin="0" end="#{bean.columnsTotal - 1}"> <rich:column> <h:outputText value="#{row.value}" /> </rich:column> </c:forEach>