Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 65265 invoked from network); 19 Sep 2006 11:51:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 11:51:36 -0000 Received: (qmail 22770 invoked by uid 500); 19 Sep 2006 11:51:33 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 22698 invoked by uid 500); 19 Sep 2006 11:51:33 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 22687 invoked by uid 99); 19 Sep 2006 11:51:33 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 04:51:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([195.226.6.68:4885] helo=mx1.wyona.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 34/E2-26148-FB9DF054 for ; Tue, 19 Sep 2006 04:51:29 -0700 Received: from 216.red-83-57-53.dynamicip.rima-tde.net ([83.57.53.216] helo=[172.26.0.5]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1GPe8J-0000vF-00 for ; Tue, 19 Sep 2006 13:51:23 +0200 Subject: Re: Caching jx *without* flow From: Thorsten Scherler To: dev@cocoon.apache.org In-Reply-To: <450E6966.60108@mobilebox.pl> References: <1158349311.17986.4.camel@localhost> <450D361D.1070407@mobilebox.pl> <450E4BE7.40103@hippo.nl> <450E5340.2030804@mobilebox.pl> <1158569825.4930.34.camel@localhost> <450E6966.60108@mobilebox.pl> Content-Type: text/plain Date: Tue, 19 Sep 2006 13:51:17 +0200 Message-Id: <1158666677.6459.41.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, 2006-09-18 at 11:39 +0200, Leszek Gawron wrote: .... > > Hmm, maybe the documentation is outdated but > > http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html state "When > > used inside flow, JXTemplate has access to Java and can therefore > > evaluate expressions like "java.util.Date()" or "java.util.HashMap()". > > This does NOT work when JXTemplates are used without flow." > > NOT true. Even if you are not using flow JXTG makes use of Rhino's > (javascript engine) NativeJavaPackage. Have a look at > https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/environment/FlowObjectModelHelper.java > Will have a closer look to get the big picture but the class name sounds heavily like we assume a flow environment. > > I see that http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html is > heavily outdated. > > > > > Wouldn't that mean that the example would not work without flow? > > > > Further regarding the validity as I understand your example this would > > not allow to use an AggregatedValidity which would be extended for all > > , or? > > > > Or could I do > > > > ... > >