JSF - actionListener tag calls method which doesn't take an ActionEvent parameter
问题 I keep reading posts which say that ActionListener methods must have the following signiture: public void calledByActionListener(ActionEvent e) { } Invoked like so: <p:commandButton value="Example" id="example" process="@this" ajax="false" actionListener="#{exampleBean.calledByActionListener()}"> However I have a no-arg method like this which works: public void calledByActionListener() { } Did something change? 回答1: Yes, that's the new EL 2.2 feature of invoking methods with custom arguments.