Ignore my prev post about adding the drop zone to the context as this is
not associated with the draggable when the page is drawn.

I think that you need a handle on the ComponentEventRequestParameters so
that you can call getNestedComponentId() which will have the id of the zone
which fired the event.

I'm not sure that this tapestry makes this avaliable to you by default but
you could do it yourself.

1. Writer a ComponentEventRequestFilter which @Injects the Environment and
calls environment.push()  and pop() with the ComponentEventRequestParameters

2. Contribute the filter to the AjaxComponentEventRequestHandler

3. Your component could do this
   @Environmental ComponentEventRequestParameters parameters;
   @Inject ComponentResources resources;

   void myEventHandler() {
      Component component =
resources.getEmbeddedComponent(parameters.getNestedComponentId());
   }

It sounds like a lot of work... perhaps someone else knows of an easier way
to get the source of a component event?

Reply via email to