| Author |
Dynamic columns in dataTable problem
|
Anton de Vries
Greenhorn
Joined: Aug 19, 2009
Posts: 1
|
|
Hello all,
I am trying to add columns to a dataTable using a forEach loop. Here is the code i've made
<h:dataTable value="#{somelist}" var="assignment">
<!--some normal columns-->
<!--columns that don't work-->
<c:forEach begin="1" end="31" step="1" varStatus="idx">
<h:column>
<f:facet name="header">
<h utputText value="#{idx.index}"/>
</f:facet>
</h:column>
</c:forEach>
</h:dataTable>
In the page I see the colums but with a empty header. Can anybody explain why this is not working?
I am using myfaces-1.2.7 and tomcat 6.0.
can anybody show me what i'm doing wrong?
Thanks.
Anton
|
 |
 |
|
|
subject: Dynamic columns in dataTable problem
|
|
|