On Thu, 21 Jan 2010 14:28:27 -0200, Michael Prescott <michael.r.presc...@gmail.com> wrote:

Is there a canonical way to expose a server-side listener for invocation by custom JavaScript?

Yes. @Inject ComponentResources and create a Link using createEventLink(). Then pass that link to your JavaScript code through RenderSupport.addScript(). More details here: 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