Ok, I tried 
  dojo.event.connect( tapestry.form
,"onFormSubmit",tapestry.dirtyFormWarning, "defuse");
now, same result: works for @Submit, doesn't work for @LinkSubmit ...
 

> -----Original Message-----
> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 09, 2007 5:52 PM
> To: Tapestry users
> Subject: Re: dirty form checking ...
> 
> I think you can connect to tapestry.form.onFormSubmit as per:
> 
> http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry
> -framework/src/js/tapestry/form.js?view=markup
> 
> On 5/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Yes, that's what I started with.
> > The basic check works, now. But I can't seem to hook into regular 
> > form-submission nicely, to switch off the dirty-check in that case.
> > I tried
> >
> > 
> dojo.event.connect(form_${formName},"onsubmit",tapestry.dirtyFormWarni
> > ng
> > , "defuse");
> >
> > That works just fine for @Submit, but not at all for 
> @LinkSubmit ... .
> >
> > > -----Original Message-----
> > > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, May 09, 2007 3:53 PM
> > > To: Tapestry users
> > > Subject: Re: dirty form checking ...
> > >
> > > Oh ...Forgot that you wanted to stop it. Yeah that wouldn't work 
> > > there.
> > >
> > > I don't think there is anything to do other than what tacos does:
> > >
> > > http://opencomponentry.com:8080/tacos/forms/DirtyFormExample.html
> > >
> > > On 5/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > > thanks, but I don't seem to be able to veto that event.
> > > > dojo.event.browser.stopEvent(evt)  doesn't seem to work ...
> > > >
> > > > > -----Original Message-----
> > > > > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, May 09, 2007 2:57 PM
> > > > > To: Tapestry users
> > > > > Subject: Re: dirty form checking ...
> > > > >
> > > > > dojo.addOnUnload
> > > > >
> > > > > On 5/9/07, [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I'm implementing a dirty form checking component.
> > > > > >
> > > > > > Can I avoid the dreaded window.onbeforeunload and use some
> > > > > convenient
> > > > > > dojo-hook to upon unloading the form?
> > > > > >
> > > > > > Any ideas are welcome!
> > > > > >
> > > > > > thanks, Marcus
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jesse Kuhnert
> > > > > Tapestry/Dojo team member/developer
> > > > >
> > > > > Open source based consulting work centered around 
> > > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo team member/developer
> > >
> > > Open source based consulting work centered around 
> > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around 
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 

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

Reply via email to