I want to invoke a method from command button. But it doesn't work and there's no anyone error's message. How is this caused and how can I solve it?
<p:commandButton value="Submit" action="#{contactMB.sendEmail()}"/>
public void sendEmail() {
System.out.println("sendEmail method is invoked");
}