ADF treeTable automatic sort
I have a treeTable whose value I supply with my own ChildPropertyTreeModel. For the nodeStamp facet column sortable="true" and sortProperty="name". When the tree table first appears, the tree is not sorted and when I click the up or down triangles in the first column header, it does not sort at all. When I set the ChildPropertyTreeModel treeModel.setSortCriteria(criteria), where criteria is ArrayList of one SortCriterion("name", true), the treeModel is always sorted ascending even when I click the down triangle in the first column header.
Do I have to catch the up/down arrow event and modify my sort criterion myself, or is there a simple way to have the treeModel do it for me automcatically like a regular table does? If the former, how do I catch the event and determine the direction of the desired sort?
Thanks in advance.