Cannot submit form when disabling JSF page

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-05-17T20:21:55Z Indexed on 2010/05/17 20:40 UTC
Read the original article Hit count: 138

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf