Issue with sorting date column with null values in a dataTable
posted 7 years ago
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.
Message for you sir! I think it is a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads