Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 83517 invoked from network); 17 Oct 2005 16:36:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 16:36:12 -0000 Received: (qmail 85208 invoked by uid 500); 17 Oct 2005 16:36:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 85141 invoked by uid 500); 17 Oct 2005 16:36:09 -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 85130 invoked by uid 99); 17 Oct 2005 16:36:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 09:36:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 09:36:09 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 167F7338B4 for ; Mon, 17 Oct 2005 18:35:50 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16817-08 for ; Mon, 17 Oct 2005 18:35:48 +0200 (CEST) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 6E5FE33567 for ; Mon, 17 Oct 2005 18:35:48 +0200 (CEST) Message-ID: <4353D2E1.3060905@apache.org> Date: Mon, 17 Oct 2005 18:35:45 +0200 From: Sylvain Wallez User-Agent: Thunderbird 1.4.1 (Macintosh/20051006) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: JavaScript expressions in JXTG (was Re: svn commit: r325889) References: <20051017132455.70460.qmail@minotaur.apache.org> <4353BA53.60309@mobilebox.pl> <1129561592.15983.18.camel@localhost.localdomain> <4353C08C.2050005@apache.org> <4353C502.1080302@mobilebox.pl> In-Reply-To: <4353C502.1080302@mobilebox.pl> 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 by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Sylvain Wallez wrote: >> Actually, I'm more and more annoyed by Jexl: JXTemplate is the *only* >> place in Cocoon where Jexl is used, and I would love to see it >> replaced by JavaScript expressions. Script/expression language >> consistency throughout Cocoon... > hmmm... we have touched the subject once. At the time you have pointed > me with some javascript helper class to get the basics of rhino but I > lost that message. Do you happen to remember what class it was? > > This shouldn't be 'that' hard. Oh no, damn easy! See JavaScriptHelper in CForms. But the problem is elsewhere: what syntax will we use for JS expression in JXTG. I would love to have it replace Jexl in "${}" expressions but it ain't that easy as it will break all existing templates. We should have a configuration in the new JXTG that associates prefixes of the "{" character to languages. Sylvain -- Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director