I'm using java, JPA and PrimeFaces with Wildfly. I have one of the PrimeFaces that I want to block when the user hit the enter key there is no action. How should I proceed?
I'm using java, JPA and PrimeFaces with Wildfly. I have one of the PrimeFaces that I want to block when the user hit the enter key there is no action. How should I proceed?
In your inputText put in the onkeyPress property.% onkeypress="if(event.keyCode == 13){event.preventDefault(); return false;}"