The JavaBean Specification gives multiple ways on how to call a method. In fact, you can call a action the normal way #{actionBean.actionMethod}
, but also the way #{actionBean['actionMethod']}
.
The sorting Action you are giving is transferred as a MethodExpression
, which compared to ValueExpression
s gave me problems in some JSF Environments.
What I'd like you to try testwise is, to give the action as two separate (value) parameters:
sortActionBean="#{myBean}"
sortActionMethod="sort"
and call those in the template as #{sortActionBean['sortActionMethod']}
. A good article on this topic is Passing action methods facelets tags.
Hope it helps...