I have a jsf form with h:commandButton as submit button:
<h:form>
<h:commandButton id="import_opener" binding="#{submit}" disabled="true" action="#{bean.save}" value="submit"/>
</h:form>
and I try to set "disabled" attribute to true (to enable the button) by JQuery:
$("[id='#{submit.clientId}']").prop("disabled", false);
and everything works fine. But when I submit commandButton the action #{bean.save} doesn't fire, just reloads the form page. If I do not operate on the h:commandButton by JQuery the action is fire.
Please, help me to run #{bean.save} after JQuery has changed the disable attribute of h:commandButton.