Note, you can't bubble the event down using Environmental, but you can pass
EventContext or some other value through it and consume this value from
your child component on @AfterRender or some other event.

I use Publisher service in one of my projects for similar purposes

https://github.com/anjlab/anjlab-tapestry-commons/wiki/Publisher-API

With this API you can bubble your event left or right or outside of
component hierarchy or even to other page, by manually triggering this
event once again using publisher API.



On Wed, Nov 6, 2013 at 6:33 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Wed, 06 Nov 2013 11:55:25 -0200, Hottois Ludwig <
> ludwig.hott...@worldline.com> wrote:
>
>  Hi everyone !
>>
>
> Hi!
>
>
>  I was asking myself about event bubbling.
>>
>> The actual philosophy is about trigger an event by the bubble up technic
>> into components, so the parents components/page could catch the event.
>>
>> But if i want to trigger the event bubbling < down > , so my child
>> components could catch the event, what's the actual Tapestry Strategy for
>> it ?
>>
>
> There's no way to directly bubble events down, but you can use the
> Environmental service to pass information and probably store some callbacks
> to be invoked later. That's how form field components work, for example.
>
> What's your scenario? Knowing it we can help you find the best solution. ;)
>
>
>  Sorry if my question is nooby :)
>>
>
> It isn't. :)
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to