>>>>> "Ugo" == Ugo Cei <[EMAIL PROTECTED]> writes:
Ugo> Il giorno 27/lug/04, alle 11:19, Colin Paul Adams ha scritto:
>> When a users submits a CForm sucessfully (without validation
>> errors), and the folowscript then saves the document, I would
>> like to prevent, or at least catch, any attempt to go back to
>> the form using the browser's back button.
>>
>> I suspect this can be done in some way by invalidating a
>> webcontinuation object, and catching an exception, but I'm not
>> sure which continuation to invalidate. Notr what the exception
>> would be.
>>
Ugo> var kont = form.showForm("..."); kont.invalidate();
That doesn't actually prevent the back button returning to the form.
What id does do, however, is when the user submits the form, it throws
an org.apache.cocoon.components.flow.InvalidContinuationException:
I can't seem to catch this in the flowscript. Is there a way to catch
it in the sitemap? I thought about a map:error-handler, but reading
the documentation, it only seems to handle HTTP status codes - not
cocoon excpetions.
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]