On 2/10/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:
> So basically I'm wanting an arbitrary way of getting/setting cookies
> from any Page, or other part of wicket.
Ok so I'm now storing a cookie with:
Cookie cookie = new Cookie("username", username);
cookie.setMaxAge((int) Duration.ONE_WEEK.getMilliseconds());
getWebRequestCycle().getWebResponse().getHttpServletResponse().addCookie(cookie);
and thats all fine and dandy (not sure I reallylike the 4-level method
chain thou).
Now all I need is to be able to access the webRequestCycle again from
the IAuthorizationStrategy (I'm using SimplePageAuthorizationStrategy)
to read the cookies, but there doesn't seem to be any exposure of the
requestCycle or anything.
Anyone?
--
i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality
- henning pauly
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user