Re: remember last visited page

2008-02-28 Thread Jon Laidler

Assuming you keep the user credentials (user ID, password etc) in a
persistent layer - database table flat file etc, you could simply add a
field to store the Java class name of the page when the user loads it. Then
if the session ends the last page can be referenced from the field after the
user has logged on and loaded. 




freak182 wrote:
> 
> Hello,
> Is there a way to remember the last page i visited after i lose the
> session. What i mean that for example if im going to checkout but i forgot
> to login first, When i click checkout button, it will redirect me to the
> login page first then when authenticated it will go directly to checkout
> page. Any codes will help :)
> 
> Thanks a lot.
> 
> Cheers.
> 

-- 
View this message in context: 
http://www.nabble.com/remember-last-visited-page-tp15733923p15753353.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: remember last visited page

2008-02-28 Thread Johan Compagner
If the previous page was a bookmarkable one then restart and intercept
will work. But if it is not then the only  thing i can quickly think
of is that you set a cookie your self everytime you render a page. And
read that back  in when they login again.

On 2/28/08, freak182 <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Is there a way to remember the last page i visited after i lose the session.
> What i mean that for example if im going to checkout but i forgot to login
> first, When i click checkout button, it will redirect me to the login page
> first then when authenticated it will go directly to checkout page. Any
> codes will help :)
>
> Thanks a lot.
>
> Cheers.
> --
> View this message in context:
> http://www.nabble.com/remember-last-visited-page-tp15733923p15733923.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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]



Re: remember last visited page

2008-02-28 Thread Maurice Marrink
Just like the RestartResponseAtInterceptPageExcpetion that will create
a new session or bind an already existing session, that might be ok,
but you mentioned "Is there a way to remember the last page i visited
after i lose the session".
Which conflicts with your example where you keep the existing session
and add a user object of some sort.
If the intercept pages are not sufficient for you then maybe you could
give us a more detailed explanation of your app and what it should do.
For instance do you use stateless pages, do you use a subclass of
WebSession, etc.

Maurice

On Thu, Feb 28, 2008 at 11:56 AM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
>You can probably look at this
>  http://cwiki.apache.org/WICKET/using-intercept-pages.html
>
>
>
>  On Thu, Feb 28, 2008 at 11:51 AM, freak182 <[EMAIL PROTECTED]> wrote:
>  >
>  >  Hello,
>  >  Is there a way to remember the last page i visited after i lose the 
> session.
>  >  What i mean that for example if im going to checkout but i forgot to login
>  >  first, When i click checkout button, it will redirect me to the login page
>  >  first then when authenticated it will go directly to checkout page. Any
>  >  codes will help :)
>  >
>  >  Thanks a lot.
>  >
>  >  Cheers.
>  >  --
>  >  View this message in context: 
> http://www.nabble.com/remember-last-visited-page-tp15733923p15733923.html
>  >  Sent from the Wicket - User mailing list archive at Nabble.com.
>  >
>  >
>  >  -
>  >  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]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: remember last visited page

2008-02-28 Thread Vitaly Tsaplin
   You can probably look at this
http://cwiki.apache.org/WICKET/using-intercept-pages.html

On Thu, Feb 28, 2008 at 11:51 AM, freak182 <[EMAIL PROTECTED]> wrote:
>
>  Hello,
>  Is there a way to remember the last page i visited after i lose the session.
>  What i mean that for example if im going to checkout but i forgot to login
>  first, When i click checkout button, it will redirect me to the login page
>  first then when authenticated it will go directly to checkout page. Any
>  codes will help :)
>
>  Thanks a lot.
>
>  Cheers.
>  --
>  View this message in context: 
> http://www.nabble.com/remember-last-visited-page-tp15733923p15733923.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  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]



remember last visited page

2008-02-28 Thread freak182

Hello,
Is there a way to remember the last page i visited after i lose the session.
What i mean that for example if im going to checkout but i forgot to login
first, When i click checkout button, it will redirect me to the login page
first then when authenticated it will go directly to checkout page. Any
codes will help :)

Thanks a lot.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/remember-last-visited-page-tp15733923p15733923.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]