On Thu, 23 Jun 2011 08:17:17 -0300, antalk <ant...@intercommit.nl> wrote:
Hi all,
Hi!
I have a component which in itself contains a 'ProgressiveDisplay'
component, however it does not catch the 'PROGRESSIVE_DISPLAY' event in
there but i want to handle this in the page that contains my custom
component.
Is this possible ? If so how and what should the annotation @OnEvent look
like ?
Events bubble up (from inner to outer component) and pages are components.
All component event handler methods are the same in Tapestry, so
@OnEvent(EventConstants.PROGRESSIVE_DISPLAY) void xxx() { . . . } should
be enough as long as you have just one ProgressiveDisplay instance in your
page. If you have more than one, your component that declares the
ProgressiveDisplays should handle the events and trigger them again. I
guess you can find some examples in the mailing list or in JumpStart.
--
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