throw RestartResponseException(main page).
I forgot to mention that the user might not always be clicking a link
on the "main" page to access a secured page. There are other
unsecured pages with links to the secured pages. So rather than
always divert the user back to the main page with a
restartresponseexception, I'd rather bring the user back to where
they actually started from (main page or other page).
Cheers,
Justin
On Sep 12, 2007, at 12:57 AM, Martijn Dashorst wrote:
Short answer: you don't.
Longer answer: you still don't, but check in your event handler, or in
possibly your page's onAttach if the request is allowed. If not, throw
RestartResponseException(main page).
Martijn
On 9/12/07, Justin Morgan (Logic Sector) <[EMAIL PROTECTED]>
wrote:
Hi,
Okay, another newbie question. :)
I have some secured pages that require a user login. The "main" page
(unsecured) has direct links to these secured pages. If the user
tries to access one of these secured pages without being logged in, I
throw a restartresponseexception that takes them to the login page.
Upon login page submission they continue to the original destination
(so far so good).
However, if the user clicks the Back button they go back to the login
page (as expected). However, if they re-enter their credentials and
submit the login page again, their "original destination" is gone, so
the login page just goes back to the login page again. There's no
other logical place for them to go, either, so I'd like to simply
chop the login page from the Back button memory.
My question is: How can I programmatically remove a previously-
visited page (i.e., login page) so that if the user hits the Back
button they skip that page (i.e., they go directly back to the "main"
page instead of the login page)?
Thanks for any info,
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]