You may be looking for the onSelected event for the button. > -----Original Message----- > From: Issah Grusi [mailto:issah.gr...@yahoo.com] > Sent: Sunday, December 28, 2008 22:18 > To: users@tapestry.apache.org > Subject: onSubmitButton() method not running - Tapestry5 > > Folks! > I have a submit button on a form, the form event handler gets called but > the submit event handler does not get called. Please Help!! > > Object onSubmitFromRegistrationForm() > { > System.out.println("The form was submitted!"); > if (unsubscribe) > subscribe = false; > return nextPage; > } > �...@onevent(component="submitButton") > void onSubmitButton() > { > System.out.println("Submit button was pressed!"); > User newUser = new User("John", "Johnson"); > this.user = newUser; > nextPage = ShowAll.class; > } > > > > <t:form t:id="registrationForm"> > <table> > . > . > </table> > <input type="submit" t:type="submit" t:id="submitButton" value="Submit"/> > > Thank you for your attention to my request. > Issah > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org