Hello, I have a form within a zone. On for submit I do some validations, and if there are errors, I want to remain on the same page, and run a javascript method on the client side. How do I achieve this?
tml - <t:zone t:id="firewallZone" t:update="show"> <t:form t:id="firewallForm" t:zone="firewallZone"> [input elements here] </t:form> </t:zone> java - Object onSuccess() { //do validation // and on error do this - pageRenderSupport.addScript(String.format("test('%s');", "test string")); // my JS method to run return null; } I get this warning msg: No object of type org.apache.tapestry5.RenderSupport is available from the Environment. and my JS method test is not getting executed. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-run-javascript-after-returning-from-form-submit-tp5451317p5451317.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org