cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject Re: Continuations and the web
Date Mon, 24 Nov 2003 16:36:55 GMT
Leszek Gawron wrote:
> I have also a problem that maybe the same: How should one protect the
> application from resubmitting the previous continuation? If user hits back
> button and submits again the the form gets into inconsistent state (some
> action gets called twice).

var kont = cocoon.sendPageAndWait(...);
kont.invalidate();

 > As some woody actions get executed automatically
> (adding a repeater row for example) there is no way to prevent this.

In that case, doing a resubmit would trigger another insert. If you see 
a problem with whis, there might be a way to invalidate that 
continuation, but I haven't looked deeply into this.

	Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it


Mime
View raw message