Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 52106 invoked from network); 26 Jul 2005 14:48:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 14:48:18 -0000 Received: (qmail 61654 invoked by uid 500); 26 Jul 2005 14:48:17 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 61643 invoked by uid 500); 26 Jul 2005 14:48:16 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 61630 invoked by uid 99); 26 Jul 2005 14:48:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 07:48:16 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HOT_NASTY,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of neil@nilspace.com designates 205.240.235.5 as permitted sender) Received: from [205.240.235.5] (HELO localhost.nilspace.com) (205.240.235.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 07:48:09 -0700 Received: from [192.168.1.201] (c-67-171-206-135.hsd1.or.comcast.net [67.171.206.135]) (authenticated bits=0) by localhost.nilspace.com (8.13.4/8.13.4/Debian-3) with ESMTP id j6QEm89N032349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Jul 2005 07:48:11 -0700 Message-ID: <42E64D28.1080404@nilspace.com> Date: Tue, 26 Jul 2005 07:48:08 -0700 From: Neil Gunton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerald Richter CC: embperl@perl.apache.org Subject: Re: [$ hidden $] bug in 2.0? References: <20050726141610.0B2A127A8B7@lnx1.i.ecos.de> In-Reply-To: <20050726141610.0B2A127A8B7@lnx1.i.ecos.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Gerald Richter wrote: >>I am having a problem with one of my forms under Embperl >>2.0rc4, which works under 1.3.6. >> >>Here is a minimal case: >> >>[- $fdat{xxx} = 'xxx' -] > > > Add > > [- @ffld = keys %fdat -] > > >>
>> [$ hidden $] >>
>> >>This does not produce any hidden value for 'xxx'. It does under 1.3. >> >>Setup is Slackware 10.1, apache 1.3.33, mod_perl 1.29. >> >>Any ideas? Is this a bug, or intentionally changed behavior? > > > > Should behave the same in Embperl 1.3, if not it is an bug in Embperl 1.3 > (as you know @ffld gets automaticly setup for parameters posted to the page, > so maybe your testcase are slightly different for 2.0 and 1.3?) No, this works when I enable 1.3 and it doesn't work when I enable 2.0. Under 1.3.6, if you set a variable in %fdat anywhere prior to the [$hidden$], then this will get included in the [$hidden$] set if the variable was not previously explicitly expressed in the form. In both the Embperl 1.3 and 2.0 documentation, under the [$hidden$] section, it doesn't mention @ffld at all (though it may elsewhere) - it simply says that the "default used for the first hash is %fdat": http://perl.apache.org/embperl/pod/doc/doc13/HTML/Embperl.-page-7-.htm http://perl.apache.org/embperl/pod/doc/Embperl.-page-3-.htm So I just put stuff in %fdat if I want it included in hidden fields automatically. I think anyone reading this would have reasonably assumed that the way to "communicate" additional fields to Embperl for the [$hidden$] command would simply add the variables to %fdat, since that is the only one mentioned (and it says it's the default) in the [$hidden$] section. I have a *lot* of code that works using %fdat. Isn't it possible (and desirable) to make 2.0 behave in the same way that 1.3 did, for purposes of backward compatibility? I guess backward compatibility includes quirks that perhaps you didn't intend, but I don't really see how this one is so harmful. I don't really see why it should be necessary to use two variables (fdat and ffld) when one seemed to do the job quite well before. Just my opinion as a user of course... Thanks! -Neil --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org