Thanks for replying.

I can't do that, since it's important that I don't catch that event for all
components.  (There's a whole bunch of other ones that do something else.)

At this point, I just have per-component event handlers that delegate to a
fourth method.

Michael

On Tue, Mar 30, 2010 at 5:08 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 30 Mar 2010 17:52:02 -0300, Michael Prescott <
> michael.r.presc...@gmail.com> wrote:
>
>  How do you catch an event from multiple components (but not all
>> components?)
>>
>
> As long as your trying to handle the same event, all you need to do is to
> *not* specify a component id in @OnEvent or in the method name. You don't
> know which component triggered the event, though.
>
> If you're trying to handle different events, you'll need different handler
> methods. (and most probably you're in the wrong path, too).
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, 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
>
>

Reply via email to