Code: Select all
<p:commandButton id="delete"
value="#{msgs['button.delete']}"
onclick="return confirm('#{msgs.confirm} Categoria Entrata?')"
action="#{categorieEntrateForm.delete}"
disabled="#{empty categorieEntrateForm.categorieEntrate.idCategoria}"
ajax="false"
/>
When I remove the disabled=".." attribute, or replace it by a simple true value, everything works fine. (idCategoria is used to distinguished new and edited records and is null or a long value). The disabled attribute works as expected (button disabled for null values, active for non nulls).
Am I doing something wrong or is this a bug?
(i do not want to use the primefaces confirmDialog, it would be overkill just to ask a simple yes/no question.)
(This worked fine with PF 2.1, I'm upgrading to 2.2.1 and experiencing this problem)