Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enable/Disable columns in dataTable PrimeFaces  RSS feed

 
Dhiraj Nangare
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created one dataTable in page and shown some columns but I want to show only those columns which have entries ( if any column doesn't have record then it should not be displayed on the page.) . Anyone please tell me how should I put validation on this and display table.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I recall correctly, the "rendered" attribute should able to do the job. When this evaluate to true (means has value) then show else doesn't show. Do watch out for nulls.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!