Hi,
so, SubmitBindings.script actually calls tapestry.form.submit
and/or tapestry.form.refresh, tapestry.form.cancel
so, why not just connect around those and do whetever you want?

You can completely bypass them, or just have your code run before or
after those...

BTW, I remember someone doing something similar some time ago using
http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/ajaxstatus.html
and overlaying on top of everything... i would be interested in
finding out more about
your implementation, esp. some code :)

On Dec 3, 2007 11:30 PM, Steve Shucker <[EMAIL PROTECTED]> wrote:
> Is it possible to globally replace the SubmitBindings.script file used
> by all the AbstractSubmit subclasses to wire up ajax events with my own
> version?  I've got a script that imposes an overlay on top of the
> components being updated and prevents double-clicks.  Right now, I can
> wire it up to each individual button with a @Script, but it would be
> cleaner if I could just replace the asset where the submit script is
> wired.  That way it would be automatically applied to all ajax submits.
> I'd like to do this without hacking up my tapestry jar.
>
> It might be nice to disable or unwire non-ajax submit buttons when
> they're clicked as well, but I haven't tried implementing that yet.
>
> -Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to