t's exactly this kind of thing that should appear as an example on the
> new website.
>
> c.
>
> -Original Message-
> From: Inge Solvoll [mailto:inge.tapes...@gmail.com]
> Sent: 23 November 2010 12:36
> To: Tapestry users
> Subject: Re: Disabling submit button
It's exactly this kind of thing that should appear as an example on the
new website.
c.
-Original Message-
From: Inge Solvoll [mailto:inge.tapes...@gmail.com]
Sent: 23 November 2010 12:36
To: Tapestry users
Subject: Re: Disabling submit button after click
Easy:
Create a mixin
Easy:
Create a mixin that:
- uses javascript to apply "disabled"-looking css styles when clicking the
button
- hooks a javascript handler to the button that cancels future submits.
- on AJAX return, revert 2 previous actions from a javascript listener.
On Tue, Nov 23, 2010 at 12:56 PM, Hugo Palma
Do you update the portion of the page that contains the form upon the ajax submit? If yes you can
bind the disabled parameter of the submit button to some page property and set that to true in your
submit handler method.
Uli
On 23.11.2010 12:56, Hugo Palma wrote:
I would like to disable a for
I would like to disable a form submit button after click in order to avoid
multiple clicking.
This can easily be done by calling "this.disabled = true" on the onclick
event of the button but this also prevents the submit event from executing.
I could do "this.disabled = true;form.submit()" but in