As @BalusC pointed here How to pass an iterated parameter via ajax to a backing bean method, it is possible to pass whole objects along as arguments in EL.
in JSF2, using action=#{bean.method(object)}
works, but I don't understand how.
Documentations of various versions of JSF (JSF doc) say this about the action
attrubute:
The expression must evaluate to a public method that takes no parameters
So why action=#{bean.method(object)}
works?
Is it realable to use this technique, or it could not work in future releases?
EDIT:
Plus, as @vasil-lukach said, documentation of EL permits it. In fact, as said in (EL doc), with EL2.2, one can use:
<h:commandButton action="#{trader.buy('SOMESTOCK')}" value="buy"/>
Are these two specifications in agreement?