After trying to fight forever on why <b:defaultCommand/> didn't work on <b:commandButton/>, I've finally figured out the culprit
Steps to reproduce:
Set up a form with a generic inputText
Add a commandButton with any of these attributes: colXs, colSm, colMd, colLg, span
Bind defaultCommand with a target to commandButton
What happens is that the button is being wrapped around a <div> which inherits the ID of the button. The button itself contains no ID. This means that defaultCommand instead clicks on the div as opposed to the button.
Tested on:
BootsFaces 1.3.0
PrimeFaces 6.2.0
Payara 5.181 with JSF 2.3
After trying to fight forever on why
<b:defaultCommand/>
didn't work on<b:commandButton/>
, I've finally figured out the culpritSteps to reproduce:
What happens is that the button is being wrapped around a
<div>
which inherits the ID of the button. The button itself contains no ID. This means that defaultCommand instead clicks on the div as opposed to the button.Tested on: BootsFaces 1.3.0 PrimeFaces 6.2.0 Payara 5.181 with JSF 2.3