I already pushed the corgamo value into the environment as I mentioned before 
but as I saw in debug mode, the environment contains the enum class but I still 
have the same error wich says that there is no environment..


I saw that in the environment class there is the cloak() and decloak() method. 
Maybe that the environment is cloak when it render the new zone.


________________________________
De : Thiago H de Paula Figueiredo <thiag...@gmail.com>
Envoyé : lundi 27 juin 2016 21:10
À : Tapestry users
Objet : Re: Environmental not avaible during action

On Mon, 27 Jun 2016 10:37:07 -0300, Lherm Nicolas <nlh...@sqli.com> wrote:

> 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

That's because you haven't pushed the corgamo value into the environment.
Try adding the following line as the first one in your event handler:
environment.push(EnumCorgamo.class, corgamo); If it doesn't work, instead
of having an @Environmental private EnumCorgamo corgamo; @Inject the
Environment service and use environment.peek(EnumCorgamo.class) instead.

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