Cannot submit form when disabling JSF page
- by Steve
Simple submit button.
<h:commandButton
actionListener="#{regBean.findReg}"
action="#{regBean.navigate}" value="Search" />
The form tag is displayed like so:
<h:form onsubmit="this.disabled=true;busyProcess();return true;">
This is so if the submit button is pressed, the page shows a "busy" icon until request is processed. The problem is, the request is never submitted and it never reaches the backend. However, if I instead take out the "disabled" call like so:
<h:form onsubmit="busyProcess();return true;">
Everything works. Any ideas?