jsf - submit form when p:commandbutton click -
i using primefaces in jsf web application. in order user inputs have used primefaces keyboard component , it's working fine. issue after getting user input keyboard component , click on commandbutton cause page reload. <p:keyboard id="default" value="#{paymentbean.mobilenumber}" keypadonly="true" size="50" for="numberinput" /> <p:commandbutton id="enternotebtn" action="#{paymentbean.validatepayment()}" value="#{msg['billpayment.cash.message']}" onclick="onenternotebtn();" async="true" /> but when using primefaces inputtext instead of keyboard component not cause page reload. <p:inputtext id="numberinput" value="#{paymentbean.mobilenumber}" autocomplete="off" /> <p:commandbutton id="enternotebtn" action="#{paymentbean.validatepayment()}" value="#{msg['billp...