cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r265753 - in /cocoon/trunk: src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js status.xml
Date Thu, 01 Sep 2005 16:29:15 GMT
Author: sylvain
Date: Thu Sep  1 09:29:04 2005
New Revision: 265753

URL: http://svn.apache.org/viewcvs?rev=265753&view=rev
Log:
Add cocoon.exit() to exit the current flowscript invocation, as discussed in http://mail-archives.apache.org/mod_mbox/cocoon-dev/200503.mbox/%3c4231A8CF.6040001@apache.org%3e

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js
    cocoon/trunk/status.xml

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js?rev=265753&r1=265752&r2=265753&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js Thu
Sep  1 09:29:04 2005
@@ -38,5 +38,19 @@
    return wk;
 }
 
+/**
+ * Exit the current flowscript invocation.
+ * <p>
+ * There are some flowscript use cases where we want to stop the current 
+ * flowscript without creating a continuation, as we don't want the user 
+ * to go back to the script.
+ * <p>
+ * An example is a "login" function where the caller function expects this 
+ * function to exit only if login is successful, but that has to handle 
+ * e.g. a registration process that includes a "cancel" button.
+ */
+FOM_Cocoon.prototype.exit = function() {
+    FOM_Cocoon.suicide();
+}
 
 

Modified: cocoon/trunk/status.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/status.xml?rev=265753&r1=265752&r2=265753&view=diff
==============================================================================
--- cocoon/trunk/status.xml (original)
+++ cocoon/trunk/status.xml Thu Sep  1 09:29:04 2005
@@ -540,6 +540,10 @@
    </action>
   </release>
   <release version="2.1.8" date="TBD">
+    <action dev="SW" type="add">
+  		Add a "cocoon.exit()" method to flowscript, which allows to exit the current flowscript
invocation without
+  		creating a continuation.
+  	 </action>
   	 <action dev="SW" type="fix" fixes-bug="35575" due-to="Jean-Baptiste Quenot" due-to-email="jbq@anyware-tech.com">
       XMLdb block: Don't rely on the sitemap components to stream the contents of a xmldb
source.
     </action>



Mime
View raw message