Hi Thiago!

Thanks for the reply.

The outset is I'm writing a mixin that allows binding of client-side jQuery
events to server-side handler methods. 

1. I create a Link via ComponentResources.createEventLink and pass the
absolute URI to my mixin script as well as the name of the jQuery event I
want to intercept and the id of the client element.

2. The mixin script listens for the jQuery event on the client element and
then fires off an ajax request via jQuery.ajax().

3. My server side event handler method in my mixin class then triggers which
in turn triggers an event (via component resources) of the same name as the
jQuery event as well as pumps in any context and the ComponentEventCallback.

4. The component that utilizes the mixin declares an event handler method
which sets a value from the context and then returns a zone_.getBody().

5. The correct EventResultProcessor triggers (in my test code I'm coercing
the zone_.getBody() block into a RenderCommand as I'm not sure if Block is
being picked up according to a quick glance at TapestryModule).

In the debugger I can see that RenderCommandComponentEventResultProcessor's
renderMarkup method is called and packs the correct mark-up into the
response. Beyond that I am unsure what's going on; no partial render occurs
even though the belying source leads me to believe it should have occured.

Regarding source of ComponentResultProcessorWrapper;
http://tapestry.apache.org/5.3.4/apidocs/org/apache/tapestry5/internal/services/ComponentResultProcessorWrapper.html

This has left me scratching my head. I wonder whether I'm doing something
silly somewhere but nevertheless it has been a very fun mixin to try to
write!

Thanks,
Peter



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ComponentEventResultProcessor-for-a-triggered-event-tp5715657p5715663.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to