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 <jan.ri...@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 [samd...@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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org