I pass the value in the context via t:context="corgamo". So the actionEvent 
seems to works but the zone isn't render yet.


I still have the same error of environment

________________________________
De : Thiago H de Paula Figueiredo <thiag...@gmail.com>
Envoyé : mercredi 22 juin 2016 17:18:16
À : Tapestry users
Objet : Re: Environmental not avaible during action

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.6 [??]

________________________________
De : 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


[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/SQLI_ENTERPRISE_poursignature.jpg]
NICOLAS LHERM

nlh...@sqli.com<mailto:nlh...@sqli.com>
Tél :+33 (0)1 55 93 26 00
www.sqli.com 
<http://letsignit.sqli.com/r/1/f15399b2-554d-400d-aed3-3eb146a8c803> - 
www.sqli-enterprise.com<http://letsignit.sqli.com/r/10/dfa93beb-1daf-44f3-b27a-f160a2b2b07f>
[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Pictos/linkedin_enterprise.jpg]<http://letsignit.sqli.com/r/11/ff4707cb-8cc9-49bc-a565-393aca191cba>
     
[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Pictos/twitter_enterprise.jpg]
 <http://letsignit.sqli.com/r/25/ff74b193-056a-45c5-954a-1e50d97c66bf>     
[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Pictos/facebook_enterprise.jpg]
 <http://letsignit.sqli.com/r/12/221a7b2a-d9e2-42e0-b4f2-039829ab6960>    
[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Pictos/youtube_enterprise.jpg]
 <http://letsignit.sqli.com/r/7/63015f89-ac9e-4c92-a5e2-c9f1677295ca>           
           Digital That Works


[http://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/LiveforGood/Plan_de_travail_1_copie_2.png]<http://letsignit.sqli.com/r/112/e30d7ae7-a5c2-484b-bb5a-798ac8342344>



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

Reply via email to