On Wed, 14 Jul 2010 14:27:07 -0300, Tim Koop <t...@timkoop.com> wrote:

  Hi everyone.

I've looked through the documentation, but I can't seem to find an answer for what I'm looking for.

I want to put a String into Javascript as a variable, like this:

<script>
var name = "${name}";
</script>

The recommended and less error-prone way of using JavaScript in Tapestry 5 is to put the most code possible in .js files and the generate the rest through RenderSupport.addScript().

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to