<rich:column/>
sortOrder attribute to point to our current sort, and using an <a4j:commandLink>
in the header facet to control the sort as shown in the example below. This simple technique makes sorting simple and sexy.
code
This additional code will let the user know which sorting direction we are currently using.
You need to remove brackets from sort method:
ReplyDeleteaction="#{complexDataTable.sort}"
There is a syntactical error in action="#{complexDataTable.sort()}" you need to remove brackets.
ReplyDeleteThat is not correct!
ReplyDeleteI tested it on GlassFish 3.0.1, 3.1, 3.1.1, 3.1.2, and 3.1.2.2 and it worked perfectly fine. I checked it after you posted your comment. It was developed on GlassFish 3.1.2.2.