Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Column added in the forEach tag are not displayed  RSS feed

 
Ousmane Mbinte
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a ace:dataTable which contains a variable number of columns. For this I use the c:forEach tag. All generated in the c:forEach are not displayed. In the sample, only columnLibelle and columnSum are displayed.

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL is generally not compatible with JSF. Usually, there's a JSF option, so JSTL isn't necessary anyway.

In your particular case, you're mistaking a template for a code model and programming a loop in it. That's bad enough when you try to do it in discrete components, but hopeless when you're doing it as a sub-element of a 2-dimensional object.

Check your icefaces documentation. I know that at least in RichFaces, there's a tag that supports what you want to do without having to resort to JSTL. I expect IceFaces has something similar.
 
Ousmane Mbinte
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I changed my implementation for use the ui:repeat tag but i have only one occurence of services, and it's empty (no text in the column header and no data). Only the sortable icone.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ui:repeat tag suffers from the same deficiency as the c:forEach. Both are attempting to "program" something that's data.

You need to read the docs on the icefaces table tags.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!