File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes show dynamic column in dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "show dynamic column in dataTable" Watch "show dynamic column in dataTable" New topic

show dynamic column in dataTable

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
hi guyz,

I want to show dynamic columns in <rich:dataTable>
I have found one way to achieve this functionality using <a4j:repeat>
But getting extra column in table. Is there any way to remove this column.

There is another way also using <rich:columns value="#{data.exampleList}"> but getting exception as "FOREACH_BADITEM"

I'm stuck with these solutions.

Please tell me what is the problem or there is any other way to show dynamic columns in table.

please do reply.
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

"johny tony " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

|Asking Good Questions|
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
another option- bind the datatable and create columns programmatically by binding column instances to UIColumn
I agree. Here's the link:
subject: show dynamic column in dataTable
It's not a secret anymore!