Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 58700 invoked from network); 18 May 2005 12:20:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 12:20:31 -0000 Received: (qmail 8272 invoked by uid 500); 18 May 2005 12:18:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 8171 invoked by uid 500); 18 May 2005 12:18:00 -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 8086 invoked by uid 99); 18 May 2005 12:17:59 -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 v07274.home.net.pl (HELO v07274.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 18 May 2005 05:17:56 -0700 Received: from sj162.internetdsl.tpnet.pl (HELO ?192.168.1.62?) (lgawron.mobilebox@home@80.55.87.162) by matrix15.home.net.pl with SMTP; Wed, 18 May 2005 12:17:46 -0000 Message-ID: <428B3263.4080003@mobilebox.pl> Date: Wed, 18 May 2005 14:17:39 +0200 From: Leszek Gawron 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: svn commit: r170733 - /cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/instruction/Set.java References: <20050518113013.34642.qmail@minotaur.apache.org> <428B2B9E.5010409@apache.org> In-Reply-To: <428B2B9E.5010409@apache.org> Content-Type: text/plain; charset=UTF-8; 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 or Leszek, could you review this please. (I have tried to run the > Unit test suite but was overwhelmed by the output) Thanks! The fix looks correct. I found out now that jx:set is "hacking ready". Instead of doing you can do: and the instruction won't even try to register the result in expression context: if (this.var != null) { var = this.var.getStringValue(expressionContext); } [...] if (var != null) { expressionContext.put(var, value); } No more "cformsDummy" in jx:macros. This should also speed things up a little bit. Care to check it? -- Leszek Gawron lgawron@mobilebox.pl IT Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65