I'll try to do that later today. This is a nasty one since it is intermittent and only reproducible in IE. I'll see if I can get a reproducible test case written and post to JIRA.
-----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 2:41 PM To: Tapestry users Subject: Re: form success and cancel both called? Ah, any chance you could file a sub-task on the existing jira issue, or fill in more details? On 1/18/06, Ben Dotte <[EMAIL PROTECTED]> wrote: > > Ok, I do see that bug in JIRA. But I think we had a separate issue with > Internet Explorer specifically and had to fix it by avoiding @Submit for > cancel buttons... even when they had the onclick javascript. Something > to the affect that the listener was getting called twice in separate > threads that eventually crashed together... here is a link to that > discussion: > http://article.gmane.org/gmane.comp.java.tapestry.user/27605/match=cance > l > > So, it was more than an inconvenience issue. > > -----Original Message----- > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 2:15 PM > To: Tapestry users > Subject: Re: form success and cancel both called? > > I think I grabbed that bug in JIRA, but didn't want to hit any of the > form > related javascript stuff until the outer shell logic was done. > > On 1/18/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > > Hey ... this was in the labs! > > > > I'd like to add something like mode="cancel" to the Submit component > > that would generate that JavaScript for you. The only bug here is the > > lack of good documentation about this concept. > > > > On 1/17/06, jeff emminger <[EMAIL PROTECTED]> wrote: > > > alright i'll give that a shot - does this mean it's a bug? > > > > > > > > > On 1/17/06, Ben Dotte <[EMAIL PROTECTED]> wrote: > > > > We had the same problem and found that using @Button or @Any > > > > type="button" with onclick="javascript:this.form.events.cancel();" > > > > instead of @Submit fixed the problem. > > > > > > > > Ben > > > > > > > > -----Original Message----- > > > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Emminger > > > > Sent: Tuesday, January 17, 2006 10:44 AM > > > > To: [email protected] > > > > Subject: form success and cancel both called? > > > > > > > > it seems from my log output that when i click my Form's cancel > button, > > > > the success listener is being called after the cancel listener. > > > > > > > > i have a Form: > > > > <component id="form" type="Form"> > > > > <binding name="success" value="listener:onSuccess"/> > > > > <binding name="cancel" value="listener:onCancel"/> > > > > <binding name="delegate" value="bean:delegate"/> > > > > </component> > > > > > > > > and in the page template a cancel button: > > > > <input type="submit" > > > > value="Cancel" > > > > jwcid="@Submit" > > > > listener="listener:onCancel"/> > > > > > > > > in the .java file: > > > > public String onCancel() { > > > > log.debug("onCancel"); > > > > return "Foo"; > > > > } > > > > public String onSuccess() { > > > > log.debug("onSuccess"); > > > > return "Bar"; > > > > } > > > > > > > > > > > > is this the wrong way to do it? > > > > > > > > thanks, > > > > jeff > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Howard M. Lewis Ship > > Independent J2EE / Open-Source Java Consultant > > Creator, Jakarta Tapestry > > Creator, Jakarta HiveMind > > > > Professional Tapestry training, mentoring, support > > and project work. http://howardlewisship.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
