Thank you for the info. Two more questions: 1. In the page TML the call to the abov JS fucntion was done in on 'IF' <t:if test="error"> loadPath(); ...
Can I add the same condition to the abov addJsLibs method: @BeginRender void addJsLibs() { if (error) { String js = String.format("loadPass(\"%s\", \"%s\",%s, \"%s\", \"%s\");", messages.get("js.error.password.not_given"), messages.get("js.error.no_confirmed_password"), messages.get("js.error.password_not_matched"), messages.get("js.error.email.not_given"), messages.get("js.error.email.wrong")); System.out.println("----------------js: " + js); renderSupport.addScript(js); } } Or it will never be executed ? 2. Is there any example or tutorial steps how to implement JSON in Tapestry 5.1*, - I found nothing at all, neither in books nor on forums -- View this message in context: http://tapestry.1045711.n5.nabble.com/inject-i18-text-in-javascript-variables-jQuery-tp5094388p5097184.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