ovidiu 2003/01/08 19:41:37
Modified: src/java/org/apache/cocoon/components/flow/javascript
system.js
Log:
If the continuation id is not found, the JavaScriptInterpreter class
calls the handleInvalidContinuation() function. The default
implementation sends back to the user the result of processing the
"invalidContinuation.xml" pipeline.
Revision Changes Path
1.6 +9 -0
xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/system.js
Index: system.js
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/system.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- system.js 4 Dec 2002 11:25:40 -0000 1.5
+++ system.js 9 Jan 2003 03:41:37 -0000 1.6
@@ -43,9 +43,18 @@
bizData, null);
}
+// This function is called to restart a previously saved continuation
+// passed as argument.
function handleContinuation(kont)
{
kont.continuation(kont);
+}
+
+// Function called to handle an expired or invalid continuation
+// identified by 'id'
+function handleInvalidContinuation(id)
+{
+ sendPage("invalidContinuation.xml", {"ident" : id});
}
// Action Support
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]