How to implement a custom sorting in rich:dataTable?

Solution Verified - Updated -

Issue

  • How to implement a custom sorting in rich:dataTable? We are using many rich:dataTables in our webapp, and one of the complaints that we're receiving is that when we have a column full of numeric data that's mixed in with some null or "NA" values, those non-numeric values are sorted to the top of the list instead of the bottom. What can we do to get the sorting working such that null or "NA" values that are mixed in with numerics sort to the bottom by default?
  • How to sort null values to the bottom in an extendeddatatable in RichFaces 4?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.0
    • 6.x
  • RichFaces
    • 3.3.1.SP2
    • 4.2.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content