My command Button checks of required inputs properlly if i put ajax="false"
but it doesn't fire the onstart and the oncomplete. However, when i put ajax="true"
every things work fine if the validation success but if i didn't enter a valid input nothing is fired.
<p:commandButton value="Extract" style="width: 12%;height: 100%" update="tableemails, :confirmPurchase, :confirmPurchaseTest, :mainform" id="extractbutton" widgetVar="ButtonExtract"
actionListener="#{mailMB.searchEmails()}" ajax="false"
icon="ui-icon-disk" styleClass="ui-priority-primary"
onstart="blockUIWidget1.show();" oncomplete=" blockUIWidget1.hide(); freeMails();" />
How can i fix this to make my Button checks the validation and fire onstart and oncomplete properly???