I have an easy question.
I have few primefaces inputtext and two primefaces commandbutton on my xhtml page. When I press enter after edited the inputtext, it triggers one of my commandbutton.
But I want to trigger the other commandbutton. How to do that? And how it decide which commandbutton is to be triggered? What is the reason there?
Thanks for help.
You can use p:defaultCommand
<p:defaultCommand target="btnId" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With