The event will be triggered at render time so that's too late. Furthermore,
my events do not necessarily update a zone containing my component and
plugins.

2014-11-04 20:19 GMT+01:00 Thiago H de Paula Figueiredo <thiag...@gmail.com>
:

> You can also try using the Trigger component to trigger an event in your
> outer component to set up the Environment:
>
> <t:component>
>    <t:trigger event="setupEnvironment"/>
>    <t:plugin1 />
>    <t:plugin2 />
> </t:component>
>
> In Component.java:
>
> void onSetupEnvironment() {
>         // set up the Environment.
> }
>
> The Trigger component needs to be placed inside the Zone and before the
> Plugin component instance.s
>
>
> On Tue, 04 Nov 2014 15:42:09 -0200, Lance Java <lance.j...@googlemail.com>
> wrote:
>
>  As you've discovered, the container does not go through the render phases
>> so doesn't add the environmental. Tapestry uses the
>> AjaxFormUpdateControllerImpl to add the FormSupport environmental during
>> ajax events. You will need to have a separate mechanism for adding the
>> environmental ins the case of ajax actions.
>>
>> Some related code for tapestry's FormSupport/Ajax implementation:
>> https://github.com/apache/tapestry-5/search?utf8=%E2%9C%
>> 93&q=FORM_COMPONENTID_PARAMETER
>> https://github.com/apache/tapestry-5/blob/90766995f59048cb7f7d4cf042a21a
>> 9d728583db/tapestry-core/src/main/java/org/apache/
>> tapestry5/internal/services/ajax/AjaxFormUpdateControllerImpl.java#L90
>>
>
>
> --
> 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
>
>

Reply via email to