On Sun, 12 Aug 2012 07:08:01 -0300, Angelo C. <angelochen...@gmail.com> wrote:

Hi,

Hi!

I got a page class, and in the tml I have a javascript function that will
call a function in the page class, and the function will return a json
object to the javascript, any tips on how to achieve this? Thanks,

There should be an entry in the FAQ for that.

@Inject ComponentResources.
Use ComponentResources.createEventLink() to obtain a link to your event.
Pass the link above to your JavaScript, which will do an AJAX request for it. Write an onXXX() (where XXX is the event name) to handle it and return your JSONObject.

--
Thiago H. de Paula Figueiredo

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

Reply via email to