I have a use-case in which i need to catch a onchange of of select-component on the server-side. The only way I know how to do that is do a javascript onchange='this.form.submit()' and catch the onsubmit() event on the serverside.
This works well when i don't have a submit-component in the form as well. However, when I do have a submit the onchange doesn't give a onsubmit() on the serverside anymore. So, the onchange in the following snippet doesn't give a server side onsubmit()-event: <body> <form t:type="form" t:id="form" id="form"> <select t:type="select" t:model="countryList" t:value="country" onchange="this.form.submit();"/> <input t:type="Submit" value="All results"/> </form> </body> However, the following does: <body> <form t:type="form" t:id="form" id="form"> <select t:type="select" t:model="countryList" t:value="country" onchange="this.form.submit();"/> <!--<input t:type="Submit" value="All results"/>--> </form> </body> This isn't expected behavior since both examples do work with plain html form elements. anyone? Geert-Jan -- View this message in context: http://www.nabble.com/t5-form-submit-not-fired-tf4645307.html#a13269213 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]