You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Massimo Lusetti <ml...@gmail.com> on 2007/02/03 01:26:30 UTC

T5: Cookies

The test case for CookiesImpl test also the writeDomainCookieValue
case but i was not able to get it running despite the writeCookieValue
counterpart.
My firefox as default policy for cookies (everything allowed).

BTW it seems the test is not taking account of the RFC 2109 where it
is explicitly said that a domain cookies value should always start
with a . (dot), actually i don't know if that RFC have been
overridden...

I got Cookies simply doing:

@Inject
private Cookies _cookies;

in my component...

Regards
-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: T5: Cookies

Posted by Massimo Lusetti <ml...@gmail.com>.
On 2/3/07, Kent Tong <ke...@cpttm.org.mo> wrote:

> Would you please create a JIRA issue and describe how does it not work?
> What is the actual behavior and what is the expected behavior?

I will but I'll explain here also since it is really easy.
On a @OnEvent method from a ActionLink within a page with @Inject
Cookies i'm able to store cookies with _cookies.writeCookieValue but
not with _cookies.writeDomainCookieValue. The browser has settings for
allowing every cookies.

> I believe you're right. Please create a JIRA issue.

I will.

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: T5: Cookies

Posted by Kent Tong <ke...@cpttm.org.mo>.
Massimo Lusetti <mlusetti <at> gmail.com> writes:

> The test case for CookiesImpl test also the writeDomainCookieValue
> case but i was not able to get it running despite the writeCookieValue
> counterpart.
> My firefox as default policy for cookies (everything allowed).

Would you please create a JIRA issue and describe how does it not work?
What is the actual behavior and what is the expected behavior?

If possible, please upload a test case. You can model your test case
after the basic_parameters() in the IntegrationTests class. You
will need to create a page like MerryChristmas.html and 
MerryChristmas.java and make a link to it from src\test\app1\index.html.

> BTW it seems the test is not taking account of the RFC 2109 where it
> is explicitly said that a domain cookies value should always start
> with a . (dot), actually i don't know if that RFC have been
> overridden...

I believe you're right. Please create a JIRA issue.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org