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

2008-06-02 Thread James Sherwood
: "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

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

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 e

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