that is an awesome one or two line explanation of an event bubble! this was a little too hard to take in whilst i mucked around with custom components and totally missed the point (https://tapestry.apache.org/component-events.html) the jumpstart example looks good too http://jumpstart.doublenegative.com.au/jumpstart/examples/component/eventbubbling
cheers chris On 20/04/2012, at 6:05 AM, Thiago H. de Paula Figueiredo wrote: > On Thu, 19 Apr 2012 16:59:33 -0300, Thiago H. de Paula Figueiredo > <thiag...@gmail.com> wrote: > >> Yes, if you change from ActionLink to EventLink. > > Ooops, it missed the explanation: Tapestry component ids are local to the > component or page in which they were declared, so, outside it, you cannot use > the id in the event handler method name of the @OnEvent annotation. On the > other hand, event names don't have this limitation. Events bubble up (from > the component that triggers it to its parent until it reaches the containing > page). > > Summary: use EventLink with a different event name for each link. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org