Forums Register Login

Enable/Disable columns in dataTable PrimeFaces

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2338 times.
Similar Threads
How to Ajax/JSP Datagrid with Autocomplete?
getting selected row in datatable
Select All option in rich:datatable
JSF Request Processing Lifecycle Basics
Sorting in h:dataTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 05:25:16.