Hi Since not handled event are considered as error, an exception is thrown when event is not handled. I think you can catch it in a ComponentEventRequestFilter instance.
Take a look ComponentEventRequestHandlerImpl, following code are calling the event on requested Component and Event : boolean handled = element.triggerContextEvent(parameters.getEventType(), parameters.getEventContext(), callback); if (!handled) throw new TapestryException(ServicesMessages.eventNotHandled(element, parameters.getEventType()), element, null); I Hope this helps, Christophe. -----Message d'origine----- De : Andreas Pardeike [mailto:fsys....@gmail.com] Envoyé : lundi 28 septembre 2009 15:28 À : Tapestry users Objet : Event bubbling - how to implement a top level catch-all target Hi, My application uses a base class that catches all events that are not handled by a component or a page on the way up. At first, I tried to write the handler in my layout component but since its not the top of the hierarchy, I had to create a base class that every page extends. There, I have my generic event handler and it works fine. But I don't like the concept that all my pages have to extend that base class and here comes my question: Is there any other way to configure Tapestry 5.1 so that unhandled events get processed in a generic way (like a custom dispatcher)? If possible, it would make my event handling so much better. Regards, Andreas Pardeike --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org