I have a list of custom objects whose class "implements Comparable".
In my visualforce page I have {!thelist.sort} as an action for a command link.
I get an error:
action="#{thelist.sort}": Unknown method 'List.sort()'
Sort does work on this object, and if I code a method for the controller like this:
public void sortthelist() {
thelist.sort();
}
And then call put that in the action then it works.
But this is duff code. I don't want to write a method for every instance of a sortable object. The methods of the object should be exposed in the template itself. This is already the case; I can call List.size() in a visualforce page.
Is there something I'm missing or is this a bug/feature?