On Friday 27 May 2005 01:18, Patrick Casey wrote:
> > Suppose you have redirected to a message page. If the user presses "back"
> > it
> > isn't refresh (and back) button safe, is it?
>
> ��������If you've redirected then sure it's safe because what you're
> refreshing is the GET.

I just tried it this way:
Users.remove(context, getUserName());
visit.setMessage("User '"+getUserName()+"' successfully removed.");
//cycle.activate("Message");
throw new PageRedirectException("Message");

The commented statement is the one I used before.

When I hit the back-button I see the incorrect form.
So this pattern doens't help me get rid of my problem...

>
> ��������Here's somebody elses more long winded explanation of the
> post->redirect-> get pattern.
>
> http://www.theserverside.com/patterns/thread.tss?thread_id=20936

Exactly,
<quote>
The only thing that have to be dealt with is intentional form resubmitting 
which happens when a user returns to the first page using Back button and 
submits form again. This should be checked by controller and a model and is 
out of scope of this pattern.
</quote>

So we need to work with the hidden field for data synchronisation check...
Isn't it?

Greetz

-- 

Koen Segers

<[EMAIL PROTECTED]>
<http://eddyvite.dyndns.org>

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

Reply via email to