You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by albartell <al...@gmail.com> on 2006/08/03 21:05:44 UTC
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
Re: Best way to do Cookies in Tapestry 4 (full example)
Posted by Ryan Holmes <ry...@hyperstep.com>.
This is from an earlier post on the subject:
@InjectObject("service:tapestry.request.CookieSource")
public abstract CookieSource getCookieSource();
and then:
getCookieSource().readCookieValue(name);
or
getCookieSource().writeCookieValue(name, value);
Also, see the API docs at:
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/services/CookieSource.html
-Ryan
albartell wrote:
>>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
Re: Best way to do Cookies in Tapestry 4 (full example)
Posted by Daniel Lydiard <dl...@hotmail.com>.
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