On Wed, 22 Jun 2016 11:58:23 -0300, Lherm Nicolas <nlh...@sqli.com> wrote:


In my app.tml I put an <t:trigger event="setupRender" /> that refers to my app.java to :

void onSetupRender() {
       environment.push(EnumCorgamo.class, corgamo);
  }

but it still doesn't works

That's because the corgamo variable is null during your event request, only being properly setup during rendering. You should instead pass this value as the context (or part of it) of your ActionLinks



De : Lherm Nicolas
Envoyé : mercredi 22 juin 2016 16:04:09
À : Tapestry users
Objet : RE: Environmental not avaible during action
Hi,



EnumCorgamo is the context of the execution, an enumeration with some Strings, and methods thats returns codes (strings)


Yes, it was Tapestry 5.2.6De : Thiago H de Paula Figueiredo <thiag...@gmail.com>
Envoyé : lundi 20 juin 2016 19:45:28
À : Tapestry users
Objet : Re: Environmental not avaible during action
Hi!

On Mon, 20 Jun 2016 04:40:22 -0300, Lherm Nicolas <nlh...@sqli.com> wrote:

In my application, I have a zone with many components inside.

The first time page render is ok. But when I click an Action link which will refresh the zone,I can't get Environmental Object.

What code puts an EnumCorgamo into the Environment in first place? It's not being called when your event is triggered.

I use tapestry 5.3.8 now. But it works when I use tapestry 2.6.

Are you sure about using 2.6? :p

--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

                >NICOLAS LHERM

nlh...@sqli.com
Tél :+33 (0)1 55 93 26 00
www.sqli.com - www.sqli-enterprise.com
        >    >    >                    >Digital That Works







--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

Reply via email to