This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 2753

"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
subject: show dynamic column in dataTable