Hello, I have problem. I want to do same action as on click submit button. source:
Test3.tml <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head> <title>Ajax test</title> </head> <body> <t:block t:id="dynamicBlock"> fun dynamic block! ${color} <br /> </t:block> <form t:type="Form" t:id="playerForm" t:zone="zoneToUpdate"> <t:label for="color" />: <t:select t:id="color" model="literal:Red,Green,Blue" onchange="this.form.submit()" /> <t:submit/> </form> <t:zone t:id="zoneToUpdate"> Content before update </t:zone> </body> </html> Test3.java: package org.stml.stmljms.pages.operators; import java.util.Date; import org.apache.tapestry.Block; import org.apache.tapestry.annotations.OnEvent; import org.apache.tapestry.annotations.Property; import org.apache.tapestry.ioc.annotations.Inject; public class Test3 { private String color; @Inject private Block dynamicBlock; public String getColor() { return color; } public void setColor(String color) { System.out.println("xxx asd"); this.color = color; } @OnEvent(component = "playerForm", value = "success") private Block successFromTheForm() { System.out.println("xxx bsd"); return dynamicBlock; } } FireBug says for me "this.form.submit is not a function" Could anyone help me? -- View this message in context: http://www.nabble.com/T5%3A-mixing-select-component-onchange%3D%22this.form.submit%28%29%22-and-zone-component-tp16516982p16516982.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]