Thiago H. de Paula Figueiredo schrieb:
On Thu, Mar 5, 2009 at 10:24 PM, Luther Baker <lutherba...@gmail.com> wrote:
Try adding @Persist to the destination class ... otherwise, I'm not sure
you're guaranteed which page instance will get rendered.

I would suggest @Persist("flash"): the field is put in the session and
then removed after it's read the first time. ;)

Manuel, please post you updated code here because the one in the first
message should work when you add @Persist or @Persist("flash") to
SendingActivationEmail.email.
Thanks. Adding @Persist made the trick. But I think I will go for the activation context, because I want to avoid HttpSession, even if it is for one call. This way I make my webapp-server stateless completely and am avoiding sticky-server problems.

public class SendingActivationEmail
{

   @Persist("flash")
   private String email;

   public String getEmail()
   {
       return email;
   }

   public void setEmail(String email)
   {
       this.email = email;
   }
}


--
manuel aldana
ald...@gmx.de
software-engineering blog: http://www.aldana-online.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to