Add a Behavior, mark the behavior temporary (setTemporary(true)), and override the Behavior's renderHead (Component component, IHeaderResponse response) method, and call response.renderJavascript(). If you want the JS function to go off every time the component is rendered, don't mark the behavior as temporary.
David -----Original Message----- From: eugenebalt [mailto:[email protected]] Sent: Tuesday, November 08, 2011 10:16 AM To: [email protected] Subject: How to run a JavaScript function from Form Constructor in Wicket In my Form Constructor, I need to run a JS function. Is there any way to do it? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-run-a-JavaScript-funct ion-from-Form-Constructor-in-Wicket-tp4016957p4016957.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
