On Sun, 29 Jan 2012 19:22:31 -0200, Julien Martin <bal...@gmail.com> wrote:
Thiago,
Hi!
Yes it is indeed a Tapestry page. Here is the java code for it (there is
no template for this page):
So the correct way of generating an URL for a page is to @Inject
PageRenderLinkSource and use one of its methods. They return a Link. Pass
the result of the toAbsoluteURI() method to your JavaScript method by
@Inject'ing JavaScriptSupport and using its addScript() method.
In addition, as you're returning JSON content, instead of return
TextStreamResponse, you can return a JSONObject or a JSONArray.
--
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