Forums Register Login

Issue with sorting date column with null values in a dataTable

+Pie Number of slices to send: Send
Hi all,

I have a dataTable in which columns are sorted using h:commandLink. Sorting works fine when all the values in the column are populated. But the problem comes in only when some of the column values are null. Here is my code:




Even when some lastname column values are null sorting works fine and all the null values come at the end when sorted in ASC and on top when sorted in DSC but only when some dates in the start date column are null it gives me NPE. Can someone help me how to handle null date values in this sorting method.


Thank You
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4089 times.
Similar Threads
Question on how to sort tomahawk datatable
sortable datatable not working
Sortable DataTable in WebSphere portal
Tomahawk dataTable sorting problem
Problem with column sort in myFaces dataTable
More...

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