Hi George, I'm doing pretty much the same thing and it works fine:
void afterRender() { if (enableJavaScriptTimer) javaScriptSupport.addScript("registerSessionTimeout(" + request.getSession(true).getMaxInactiveInterval() + ");"); } Shouldn't matter if you are doing jQuery or otherwise. Maybe add a console.log() in your requiredFields() method and then check your JS console to ensure it is being called. mrg On Wed, Jan 11, 2012 at 3:31 PM, George Christman <gchrist...@cardaddy.com> wrote: > Hello, I'm looking to pass a Java string variable into my > javaScriptSupport.addScript method. I'm using the tapestry jquery library. > > Below is a sample of what I'm looking to do, however this does not function. > > void afterRender() { > String test = "test"; > javaScriptSupport.addScript("requiredFields(" + test + ");"); > } > > Any guidance would be of great help, thanks in advance. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Pass-java-String-variable-into-addscript-jquery-method-tp5137957p5137957.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org