On Tue, 02 Mar 2010 18:54:40 -0300, DavidWei <xinhua....@rrd.com> wrote:

When you mentioned "Static", I do not know what you mean? in my case, the
parameters passed in have to be loaded dynamically because we are using a
single text editor to edit many text areas so that each area(called content block) will have a unique id.

@Inject RenderSupport and then use its addScript() method in some rendering event handler method. That's the recommend way of generating JavaScript code in Tapestry. It works very well in AJAX requests. There's a very good example and explanation at http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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