Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 7424 invoked from network); 11 Mar 2005 14:19:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 14:19:06 -0000 Received: (qmail 11337 invoked by uid 500); 11 Mar 2005 14:19:04 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 11182 invoked by uid 500); 11 Mar 2005 14:19:03 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 11169 invoked by uid 99); 11 Mar 2005 14:19:03 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FORGED_RCVD_HELO,URIBL_WS_SURBL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 06:19:03 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 7B5D81BAF8 for ; Fri, 11 Mar 2005 15:09:25 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16013-09 for ; Fri, 11 Mar 2005 15:09:23 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id A5EE41BAF6 for ; Fri, 11 Mar 2005 15:09:23 +0100 (CET) Message-ID: <4231A8CF.6040001@apache.org> Date: Fri, 11 Mar 2005 15:18:55 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Adding cocoon.suicide() to the FOM API. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, There are some flowscript use cases where we want to stop the current flowscript without creating a continuation, as we don't want to the user to go back to the script. 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. This is currently possible using "FOM_Cocoon.suicide()" which is what is used internally by cocoon.sendPageAndWait (see fom_system.js), and I would like to make this more visible by being available as "cocoon.suicide()". Any objection? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }