Unfortunately, disabling the submit button in this manner will prevent your submit listener from being invoked since the value of the submit button (like any disabled form component) is not submitted with the form. This value is looked for by the submit component to determine whether or not to invoke its listener. You might be able to get by with using a form listener instead.
Paul [EMAIL PROTECTED] wrote: > > >If you specify an onClick you also then need to submit the form usin >javascript so your onCLick will become > >onClick="this.disabled=true; document.form1.submit();" > >where form1 is the name of your form. > > > > > > > > "Velarde, Domonic > R. - WMD" > <Domonic.Velarde@ To > ci.denver.co.us> "Tapestry users" > <[email protected]> > 09/09/2005 00:39 cc > > Subject > Please respond to disable the submit button > "Tapestry users" > <[EMAIL PROTECTED] > karta.apache.org> > > > > > > > >Sorry for posting this twice, but a lot of activity here yesterday. >Hoping someone will see this the second time around. > > > >I need to disable the submit button after a user presses it. I have >found some examples how to do this. Some more complicated than others. > > > >I am opting to go for the simpler solution and use JavaScript to disable >the submit button after the user presses it. Can any one show what the >JavaScript looks like? I found many reference to how but when >attempting it does not work. The page hangs. Here is sample code of what >I have been trying: > > > > <input type="submit" jwcid="@Submit" value="message:button-proceed" >listener="ognl:listeners.submit" onClick="this.disabled=true;"/> > > > >It will grey out the button, which is what I want, but then it hangs >does and does not go to the next page. > > > >Any help much appreciated. > > > > > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >
smime.p7s
Description: S/MIME Cryptographic Signature
