You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Lydiard <dl...@hotmail.com> on 2006/08/03 21:21:36 UTC
Re: Best way to do Cookies in Tapestry 4 (full example)
I do something like this...
@InjectObject("infrastructure:cookieSource")
public abstract CookieSource getCookieSource();
public void pageBeginRender(PageEvent event) {
IRequestCycle cycle = getRequestCycle();
if (!cycle.isRewinding()) {
String cookieValue =
getCookieSource().readCookieValue("SomeCookieName");
...
}
}
----- Original Message -----
From: "albartell" <al...@gmail.com>
To: "'Tapestry users'" <us...@tapestry.apache.org>
Sent: Thursday, August 03, 2006 12:05 PM
Subject: Best way to do Cookies in Tapestry 4 (full example)
> >Jesse did a great work also this mailing list contains alot of help...
>
> I see everything Jesse and the other committers are doing and I greatly
> appreciate it. I know how thankless open source can be (and how little
> assistance you actually get) because I have been there. Hopefully my
> emails
> come across as constructive as I hope for positive resolution.
>
> With that said, let's see if we can come up with a solid way to do cookies
> in T4 that can be added to the Tapestry documentation (instead of hidden
> in
> archives).
>
> Anybody want to start us out with a full example of how they do cookies in
> T4?
>
> Aaron Bartell
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org