T5: Passing values to JavaScript function
Hi, Passing a dynamic values from the Java page to a JavaScript function embedded in the .tml file works fine. However, I need to pass that values to an external (basic) JavaScript function. The external javacript files is attached to the page using the IncludeJavaScriptLibrary annotation: @IncludeJavaScriptLibrary(context:scripts/simple.js) public class Start { ... public String getDynamicValue() { // Apply logic here to calculate value return value; } } How do I pass ${prop:dynamicValue} ? Thanks, /Serge -- View this message in context: http://www.nabble.com/T5%3A-Passing-values-to-JavaScript-function-tp18071973p18071973.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]
Re: T5: Passing values to JavaScript function
look for this small sample: http://pastebin.com/f3c9f5056 2008/6/23 SergeEby [EMAIL PROTECTED]: Hi, Passing a dynamic values from the Java page to a JavaScript function embedded in the .tml file works fine. However, I need to pass that values to an external (basic) JavaScript function. The external javacript files is attached to the page using the IncludeJavaScriptLibrary annotation: @IncludeJavaScriptLibrary(context:scripts/simple.js) public class Start { ... public String getDynamicValue() { // Apply logic here to calculate value return value; } } How do I pass ${prop:dynamicValue} ? Thanks, /Serge -- View this message in context: http://www.nabble.com/T5%3A-Passing-values-to-JavaScript-function-tp18071973p18071973.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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com