Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 82255 invoked from network); 15 Jun 2004 09:11:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 09:11:37 -0000 Received: (qmail 3517 invoked by uid 500); 15 Jun 2004 09:12:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 3494 invoked by uid 500); 15 Jun 2004 09:12:01 -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 3476 invoked by uid 99); 15 Jun 2004 09:12:01 -0000 Received: from [81.56.241.65] (HELO mail.anyware-tech.com) (81.56.241.65) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 15 Jun 2004 02:12:01 -0700 Received: from apache.org (firewall.anyware [10.1.0.254]) by mail.anyware-tech.com (Postfix) with ESMTP id D11FA5EC71 for ; Tue, 15 Jun 2004 11:11:07 +0200 (CEST) Message-ID: <40CEBD2B.4080603@apache.org> Date: Tue, 15 Jun 2004 11:11:07 +0200 From: Sylvain Wallez User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: fr, en, en-us MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [VOTE] Unrestricting the FOM References: <40CD7782.1070009@apache.org> <40CEA9E3.4020909@apache.org> In-Reply-To: <40CEA9E3.4020909@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Reinhard Poetz wrote: > Sylvain Wallez wrote: > >> Hi all, >> >> More and more, the limitations of objects provided by the FOM seem >> like arbitrary constraints that go in the way of people and produce >> confusion. Furthermore, these restrictions only apply to the JS >> flowscript and not to JavaFlow, thus making JS flowscript a second >> zone citizen compared to Java code. >> >> That's why I propose to remove these restrictions my having >> cocoon.request, cocoon.response and cocoon.context providing the full >> API defined by the interfaces in org.apache.cocoon.environment. >> >> Furthermore, I propose to add cocoon.avalonContext to provide access >> to the various data held by this object. >> >> More background on this subject is available in the "Less is more... >> or less" discussion [1] and my answer to Jeremy's problem [2] that >> shows how simple it is to workaround the restricted FOM. >> >> Please cast your votes! >> >> - [+1] to remove restrictions on existing objects. >> - [?] to add cocoon.avalonContext. > > > I'm not sure about avalonContext.`What happens if we really drop > Avalon as base framework? Do statements containing > cocoon.avalonContext still work or will they be hidden (because > Flowscript is interpreted) broken? If the user has to use the > workaround and she recompiles the code with Cocoon 3.0 and the > compiler doesn't compile her code anymore, she knows that she has a > problem. Or will a possible legacy mode hide that she may have a problem? > > We should really try to make moving from Cocoon 2.x to 3.x as smooth > as possible and users that only use Flowscripts and the sitemap > shouldn't be forced to change their applications if they want to use > Cocoon in the same way as they have been used to do. Looking at the vote results, the general opinion is to remove the API restrictions (got only +1's), but not tie the FOM to a particular Avalon object (got lots of +0's and a -1). So let's drop this cocoon.avalonContext proposal. Firstly because it becomes less useful if the FOM is unrestricted, and secondly because we can easily add the ContextAccess I proposed to Jeremy as a utility class. People using that class will know by doing so that their app becomes tied to Avalon. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }