Em Mon, 07 Dec 2009 21:38:17 -0200, kamiseq <kami...@gmail.com> escreveu:

hi,

Hi!

I ve wrote simple component that renders link and handles event triggered by
the link then it sets some value and should render that value.
the problem is that I get the value but then the value is lost as tapestry redirects to a page that holds the component
why is so and how can design my component to fix that. Of course I can
annotate the value field as @Persist-ent but I really would like to avoid
session as much as possible.

You cannot avoid the session in this case, as Tapestry uses redirect-after-post. You can use @Persist("flash"): the value will be removed from the session after it is read the first time.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.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