Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 52320 invoked from network); 21 May 2005 09:13:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 May 2005 09:13:47 -0000 Received: (qmail 99056 invoked by uid 500); 21 May 2005 09:13:43 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 98980 invoked by uid 500); 21 May 2005 09:13:41 -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 98900 invoked by uid 99); 21 May 2005 09:13:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from essemtepe.nada.kth.se (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 21 May 2005 02:13:39 -0700 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [83.226.249.12] (c-0cf9e253.188-1-64736c14.cust.bredbandsbolaget.se [83.226.249.12]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11/8.12.11) with ESMTP id j4L9DSro029146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 May 2005 11:13:35 +0200 (MEST) Message-ID: <428EFC38.1030909@nada.kth.se> Date: Sat, 21 May 2005 11:15:36 +0200 From: Daniel Fagerstrom User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: JXTemplate initialization in non-flowscript scenarios References: <428DBE4D.2060004@apache.org> <428DD451.2060006@nada.kth.se> <428DD850.6080402@apache.org> <428DDE4F.70502@nada.kth.se> <428E19D8.3020802@apache.org> In-Reply-To: <428E19D8.3020802@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Reinhard Poetz wrote: > Daniel Fagerstrom wrote: > >> Ok, but I still need to know the content of the value attribute to the >> jx:set that creates the problem to be able to help. From the >> stacktrace it seem like something goes wrong when JXPath uses >> reflection on the value. > > > The debugger showed that it's this line: > value="#{org.apache.cocoon.forms.generation.JXMacrosHelper.createHelper($cocoon/consumer,$cocoon/request)}"/> > > > Unfortunatly my knowledge in jxtemplate isn't sufficient to see the > difference between the two cases (with/witout ). You are only supposed to have direct access to java.*, IIUC, packages from FOM for other packages you must have a "Package." prefix, i.e. value="#{Package.org.apache.cocoon.forms.generation.JXMacrosHelper.createHelper($cocoon/consumer,$cocoon/request)} This is the behaviour that is implemented in o.a.c.environment.TemplateObjectModelHelper.addJavaPackages. In org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.setupPackages the packages javax.*, org.* and com.* where also setup so that you have direct access to them in rev 26848. The log says: "Also added experimental fix to provide direct access to javax, org, and com packages". Don't know if there was any discussions or decisions about this. Anyway, we have had the functionality for 16 months, so we should probably continue to support it. /Daniel