hmm.. guess i better review them again! 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]
