Hi, Remove the listener from the form and add it to the ok button.
Best wishes John -----Original Message----- From: Renat Zubairov [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 10:30 AM To: Tapestry users Subject: Listeners question Hello Tapestry gurus, I have a page with "Ok" and "Cancel" buttons. like following: <component id="ok" type="Submit"> <binding name="value" value="message:ok"/> </component> <component id="cancel" type="Submit"> <binding name="listener" value="listener:doCancel"/> <binding name="value" value="message:cancel"/> <binding name="defer" value="false"/> </component> Those components inside a form for a edit/create business entity. Cancel listener implementation looks like following: public IPage doCancel() { return getUserListPage(); } Where user list page is injected. The problem is when I click on the cancel button, cancel button listener is called, but after it also "Ok" button listener (form submit) is called also. What should I do in order to not to call "Ok" button listener. Thank you. -- Best regards, Renat Zubairov --------------------------------------------------------------------- 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]