You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wicket user <sa...@live.com> on 2012/06/27 19:49:39 UTC
Adding Cookie in 1.5.5
Hi,
I was trying to add a cookie
getWebRequestCycle().getWebResponse().addCookie()
but couldnt find getWebRequestCycle() in 1.5.5.
i found getRequestCycle() but did not find addCookie in getResponse().
Please suggest how to add/get cookie in 1.5.5
Thanks
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Adding Cookie in 1.5.5
Posted by Ian Marshall <Ia...@GMail.com>.
Have you tried
wicket user wrote
>
> Hi,
>
> I was trying to add a cookie
> getWebRequestCycle().getWebResponse().addCookie()
>
> but couldnt find getWebRequestCycle() in 1.5.5.
>
> i found getRequestCycle() but did not find addCookie in getResponse().
> ((WebResponse)getRequestCycle().getResponse()).addCookie() should ideally
> work
> not sure why isnt working
> Please suggest how to add/get cookie in 1.5.5
>
> Thanks
>
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265p4650272.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Adding Cookie in 1.5.5
Posted by Martin Grigorov <mg...@apache.org>.
See CookieUtils class.
Otherwise you need to cast the Response to WebResponse to be able to
work with cookies.
On Wed, Jun 27, 2012 at 9:20 PM, Jan Riehn <ja...@1und1.de> wrote:
> Hey,
>
> there is an open issue: https://issues.apache.org/jira/browse/WICKET-4358
>
> the hint ((HttpServletResponse)bufferedWebResponse.getContainerResponse()).addCookie( cookie ); works.
>
>
> Best regards,
>
> Jan
> ________________________________________
> Von: wicket user [samdani@live.com]
> Gesendet: Mittwoch, 27. Juni 2012 19:49
> An: users@wicket.apache.org
> Betreff: Adding Cookie in 1.5.5
>
> Hi,
>
> I was trying to add a cookie
> getWebRequestCycle().getWebResponse().addCookie()
>
> but couldnt find getWebRequestCycle() in 1.5.5.
>
> i found getRequestCycle() but did not find addCookie in getResponse().
>
> Please suggest how to add/get cookie in 1.5.5
>
> Thanks
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
AW: Adding Cookie in 1.5.5
Posted by Jan Riehn <ja...@1und1.de>.
Hey,
there is an open issue: https://issues.apache.org/jira/browse/WICKET-4358
the hint ((HttpServletResponse)bufferedWebResponse.getContainerResponse()).addCookie( cookie ); works.
Best regards,
Jan
________________________________________
Von: wicket user [samdani@live.com]
Gesendet: Mittwoch, 27. Juni 2012 19:49
An: users@wicket.apache.org
Betreff: Adding Cookie in 1.5.5
Hi,
I was trying to add a cookie
getWebRequestCycle().getWebResponse().addCookie()
but couldnt find getWebRequestCycle() in 1.5.5.
i found getRequestCycle() but did not find addCookie in getResponse().
Please suggest how to add/get cookie in 1.5.5
Thanks
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org