Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Columns problem in datatable

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a scenerio where i like to display a data table in which 4 columns are those which i already know whereas some other columns are dynamic and i need to display them dynamically. I have written following code:



Here the first and last columns are rendered successfully whereas t:columns tag is not rendered. i don't know why

I have checked the list i have provided to t:columns tag has elements in it as expected. My JSF page doesn't throw any exception and doesn't render the tag. i am not able debug it also.

Can anybody help
 
Stephen Connolly
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, to my understanding, that's not how a dataTable works... which would explain why it doesn't ;)

If you are lucky enough to be developing against JSF 1.2, the following should work.

Note: JSF 1.2 is needed for two reasons: 1. Unified EL and 2. Fixed implementation of c:forEach. Thus my example will work in glassfish!

 
Darrel Su
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also have the same problem.
c:repeat does not work either.
t:columns seems not to render embedded list.
Anyone gets solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic