Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic columns in dataTable problem  RSS feed

Anton de Vries
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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">
<f:facet name="header">
<hutputText value="#{idx.index}"/>

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?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!