On Tue, 26 May 2015 11:49:20 -0300, Poggenpohl, Daniel <daniel.poggenp...@isst.fraunhofer.de> wrote:

Hi again,

Hi!

Jquery can define arbitrary events that can be triggered. I thought I could raise a JS event and handle it via "onEVENTNAME" on the Tapestry component side. But of course that doesn't work, probably because no event handlers are generated because no corresponding eventlink is created.

Event handlers aren't generated at all by Tapestry. You declare them by using @OnEvent or using a naming convention. You just cannot trigger a JS event and expect it to magically trigger a server-side event.

Tapestry doesn't need an EventLink or ActionLink to be able to trigger an event handler method in the server-side. You can create your own events and their URLs by using ComponentResources.createEventLink(). With the URL generated by that method, you can invoke them using AJAX in JS.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.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