Re: Repost: T3: Stop back button view of a form

2008-06-02 Thread James Sherwood

Lance,

Thanks, That is actually what we are trying right now.

We are taking the route of an onload where it just checks a service(or maybe 
a cookie we havent nailed that down) to see if they have submitted and just 
does a redirect if they have.


--James

- Original Message - 
From: "Lance Java" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Monday, June 02, 2008 9:59 AM
Subject: Re: Repost: T3: Stop back button view of a form



Ok, here's a solution... use an onload script to either
a) populate a zone with the form fields
b) populate the zone with an already submitted message
This way the form will not be in the browser's cache.

If you want to redirect you'll need to use javascript since it'll be an 
ajax

request.

Cheers,
Lance.

2008/6/2 Lance Java <[EMAIL PROTECTED]>:


Not really possible I'm sorry, when a user hits the back button, the page
they are viewing is in their browser cache (ie not a serverside hit).
Probably the best solution is to set a flag (persistant property or in 
the
db) on first form submit then fail any subsequent submits by redirecting 
to

an error page.

Cheers,
Lance.

2008/6/2 James Sherwood <[EMAIL PROTECTED]>:

Hello,


I was told I posted this in the wrong spot so I am sending to the list
again and hopefully it goes in the right spot..

I am trying to stop users from submitting a form and then pressing the
back button and seeing the form again.  I would like to either redirect 
them

somehow or just show them a session expired.

Any ideas?

Thanks,
--James








__ Information from ESET Smart Security, version of virus 
signature database 3151 (20080602) __


The message was checked by ESET Smart Security.

http://www.eset.com




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



Re: Repost: T3: Stop back button view of a form

2008-06-02 Thread Lance Java
Ok, here's a solution... use an onload script to either
a) populate a zone with the form fields
b) populate the zone with an already submitted message
This way the form will not be in the browser's cache.

If you want to redirect you'll need to use javascript since it'll be an ajax
request.

Cheers,
Lance.

2008/6/2 Lance Java <[EMAIL PROTECTED]>:

> Not really possible I'm sorry, when a user hits the back button, the page
> they are viewing is in their browser cache (ie not a serverside hit).
> Probably the best solution is to set a flag (persistant property or in the
> db) on first form submit then fail any subsequent submits by redirecting to
> an error page.
>
> Cheers,
> Lance.
>
> 2008/6/2 James Sherwood <[EMAIL PROTECTED]>:
>
> Hello,
>>
>> I was told I posted this in the wrong spot so I am sending to the list
>> again and hopefully it goes in the right spot..
>>
>> I am trying to stop users from submitting a form and then pressing the
>> back button and seeing the form again.  I would like to either redirect them
>> somehow or just show them a session expired.
>>
>> Any ideas?
>>
>> Thanks,
>> --James
>
>
>


Re: Repost: T3: Stop back button view of a form

2008-06-02 Thread Lance Java
Not really possible I'm sorry, when a user hits the back button, the page
they are viewing is in their browser cache (ie not a serverside hit).
Probably the best solution is to set a flag (persistant property or in the
db) on first form submit then fail any subsequent submits by redirecting to
an error page.

Cheers,
Lance.

2008/6/2 James Sherwood <[EMAIL PROTECTED]>:

> Hello,
>
> I was told I posted this in the wrong spot so I am sending to the list
> again and hopefully it goes in the right spot..
>
> I am trying to stop users from submitting a form and then pressing the back
> button and seeing the form again.  I would like to either redirect them
> somehow or just show them a session expired.
>
> Any ideas?
>
> Thanks,
> --James


Repost: T3: Stop back button view of a form

2008-06-02 Thread James Sherwood
Hello,

I was told I posted this in the wrong spot so I am sending to the list again 
and hopefully it goes in the right spot..

I am trying to stop users from submitting a form and then pressing the back 
button and seeing the form again.  I would like to either redirect them somehow 
or just show them a session expired.

Any ideas?

Thanks,
--James