I am not able to invoke a method in a JSF backing bean. I am getting this error.
(org.apache.jasper.el.JspMethodNotFoundException: /login.jsp(40,26)
‘#{login_bean.dbDelete}’ Method not found:
beans.login_bean@263b1d94.dbDelete() )
The method signature is below:
public void dbDelete(String UName) {
//
}
The JSP code calling the method is:
<h:commandButton action="#{login_bean.dbDelete}" value="Delete" type="submit"/>
How is this caused and how can I solve it?
This action expects an argumentless method.
So to fix this problem, either just remove
String UNamefrom your method signature, or provide a valid argument (works in EL 2.2 only):