You need to submit a form field -- could be anything -- with the name of the
cancel button Struts expects. Take a look at your generated HTML again to
get the name of the button. That needs to be in the submission for the
isCancelled() method to detect cancellation.

On 8/3/07, Charl Gerber <[EMAIL PROTECTED]> wrote:
>
> OK, I think I found the problem. So if someone can
> come up with a feasible workaround, please! Its
> nothing struts related, btw. Javascript.
>
> I have a form onSubmit function which disabled all the
> input buttons to prevent users from clicking buttons
> twice or clicking another button (the actions take a
> second or so, so there is time for users to do that).
>
> Problem is that the disableButtons() javascript really
> disabled the cancel, so the cancel command is not
> included in the form sent to the action. The form is
> still submitted, but without the cancel and therefor
> the cancel works exactly the same as submit.
>
> Any other ideas how one can disable all the buttons?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to