Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 60455 invoked from network); 22 Jan 2005 15:42:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Jan 2005 15:42:41 -0000 Received: (qmail 33226 invoked by uid 500); 22 Jan 2005 15:42:39 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 33188 invoked by uid 500); 22 Jan 2005 15:42:39 -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 33164 invoked by uid 99); 22 Jan 2005 15:42:39 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 22 Jan 2005 07:42:39 -0800 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CsNPI-0004wt-00 for ; Sat, 22 Jan 2005 16:42:36 +0100 Received: from dyn-213-36-228-29.ppp.tiscali.fr ([213.36.228.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jan 2005 16:42:36 +0100 Received: from t.katelbach by dyn-213-36-228-29.ppp.tiscali.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jan 2005 16:42:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: oceatoon Subject: Re: Difference between FOM_Session and REal Session? Date: Sat, 22 Jan 2005 16:32:49 +0100 Organization: oceatoon Lines: 33 Message-ID: References: <41F264CA.1060906@nada.kth.se> Reply-To: t.katelbach@systheo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dyn-213-36-228-29.ppp.tiscali.fr Mail-Copies-To: t.katelbach@systheo.com User-Agent: KNode/0.8.2 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Daniel Fagerstrom wrote: > I agree with that the behaviour is weird, but it is designed to be that > way. What happens is that your data is always placed in the session data > in the servlet. But then the request object, session objects etc are > placed in a different place if you use them from flow, comperd with how > it is done in the rest of Cocoon. If you want to know all the details > you can take a look at the setupView method in > o.a.c.components.flow.javascript.fom.FOM_JavaScriptInterpreter and > o.a.c.components.flow.javascript.fom.FOM_JavaScriptFlowHelper. OK Thanks > > The flow embeds the request object etc in some kind of dynaic map which > makes them more convinient to use from flow and from expression > languages. Then the object are placed in special places in the object > model. I.e. not the same as all other Cocoon components use. JXTG gets > the objects that are used in $cocoon from these places, check the setup > and setContext methods in the original JXTG for details. > > The result of this is that when you use JXTG without flow, the $cocoon > object is empty except for $cocoon.parameters. For back compatibility > and for making it possible to use whithout flow there are some > deprecated variables $request, $session etc that uses the non emebeded > object from the objectmodel. You have to use these if you don't use flow. > > In the refactored JXTG I use o.a.c.environment.FlowObjectModelHelper, > that Carsten wrote. It gets the objects from the normal places in the > objectmodel and does the dynamic map embeding and puts everything in > $cocoon. By using this we get the same behaviour booth in the flow and > non flow context. is this allready functionnal in JXTG2 ?