I am updating myfaces jar from 1.1.5 to 2.3.3 (myfaces-impl-2.3.3 and myfaces-api-2.3.3)and the old jsp page is throwing below error. Does this not work in the new myfaces 2.3.3 version? Is there any other jar that needs to be updated? What is the change needed to get this resolved?
A literal value was specified for attribute actionListener that is defined as a deferred method with a return type of void. JSP.2.3.4 does not permit literal values in this case
<h:commandLink actionListener="#{MyBean.testmethod}" action="testmethod" >
<h:outputText value="exit" />
</h:commandLink>
class MyBean{
public void testmethod(ActionEvent ae){
System.out.println("calling test method");
}
}