This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Datatable  RSS feed

 
Jason O'Brien
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I was hoping somebody could offer me the best way forward. I am still fairly new to JSF and am not sure how to proceed.

What I have is a backing bean with all the data I require that is populated into a rich:datatable. The issue I have is that one of the columns in the table is a column of buttons and I require for one of the rows to not have a button based on the data in the backing bean.

Ie. there are three possible rows returned to populate the table, and only if 2 specific rows are returned, I need only one of them to have a button, or better yet, for the button to span 2 rows and effectively apply to both.

If anyone has any ideas as to how to proceed it would be greatly appreciated.

Thanks,
Jason
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF dataTables do not support the rowspan or colspan attributes that HTML tables do. People usually compensate by defining sub-tables to get the same appearance.

It's easy to control whether a button appears in a given cell, however. The "rendered=" attribute does that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!