You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alex Jacoby <ae...@isr.umich.edu> on 2008/01/10 20:04:25 UTC
when to cache pre-redirect urls
I'm integrating a wicket app w/ an external login framework. When a
user who isn't logged in tries to access a restricted page, wicket
redirects them to the sign-in page, which is a RedirectPage for the
external login page. That page sets a cookie when people log in, and
can redirect users back to any URL I specify. My problem is grabbing
that URL -- I'd like to do it in the constructor of my
WebRequestCycle, but I can't tell which page requests are real user
requests, and which ones are wicket-created redirects to the login
page. They both create a new WebRequestCycle, in both cases
isRedirect() returns false, and in both cases request.getPage()
returns null.
I used to cache the URL in the session.getRoles method (it doesn't get
called for the redirect), but it seems like there's got to be a better
place (the request cycle for instance).
Any ideas?
Any ideas are appreciated,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org