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]
