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" <[EMAIL PROTECTED]>
To: "'Tapestry users'" <users@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to