Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 74254 invoked from network); 27 Dec 2007 06:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2007 06:58:30 -0000 Received: (qmail 18461 invoked by uid 500); 27 Dec 2007 06:58:19 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 18443 invoked by uid 500); 27 Dec 2007 06:58:18 -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 18432 invoked by uid 99); 27 Dec 2007 06:58:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2007 22:58:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.10.192.66] (HELO srve2.ecos.de) (85.10.192.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2007 06:57:53 +0000 Received: from neptun.ecos.de (neptun.ecos.de [194.95.226.11]) by srve2.ecos.de (Postfix) with ESMTP id 52585B0871; Thu, 27 Dec 2007 07:57:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neptun.ecos.de (Postfix) with ESMTP id E77D2787D52; Thu, 27 Dec 2007 07:57:55 +0100 (MET) Received: from neptun.ecos.de ([127.0.0.1]) by localhost (Firewall [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31922-13; Thu, 27 Dec 2007 07:57:54 +0100 (MET) Received: from lnx1.i.ecos.de (lnx1.i.ecos.de [10.11.11.102]) by neptun.ecos.de (Postfix) with ESMTP id EF40832B1A; Thu, 27 Dec 2007 07:57:54 +0100 (MET) Received: from lnx1.i.ecos.de (localhost [127.0.0.1]) by lnx1.i.ecos.de (Postfix) with ESMTP id 6EED7885E3C; Thu, 27 Dec 2007 07:57:54 +0100 (CET) Received: from srvmail1.i.ecos.de (srvmail1.i.ecos.de [10.11.11.111]) by lnx1.i.ecos.de (Postfix) with ESMTP id 08FDDA06BE; Thu, 27 Dec 2007 07:57:54 +0100 (CET) Received: from srvmail1.i.ecos.de (localhost [127.0.0.1]) by srvmail1.i.ecos.de (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id lBR6vrDl006702; Thu, 27 Dec 2007 07:57:53 +0100 Date: Thu, 27 Dec 2007 07:57:52 +0100 From: "Gerald Richter - ECOS GmbH" To: bbayer@loopone.com, embperl@perl.apache.org Message-ID: In-Reply-To: Subject: RE: RE: embperl checbox checked attribute not inserted x-scalix-Hops: 1 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: von BB5000-Mailfilter X-Virus-Checked: Checked by ClamAV on apache.org Hi, How do you pass %fdat. The correct way would be: Embperl::Execute ({inputfile =3D> '/path/to/some/file', fdat =3D>=20 \%custom_fdat}) ; Did you do it this way? If yes, did you have a LoadModule and a PerlModule statement for Embperl=20 in your httpd.conf? Gerald > -----Original Message----- > From: Blayne Bayer [mailto:bbayer@loopone.com]=20 > Sent: Monday, December 03, 2007 8:00 PM > To: embperl@perl.apache.org; Blayne Bayer > Subject: RE: embperl checbox checked attribute not inserted >=20 > So upon further investigation I have found that if I pass=20 > fdat into Embperl::Execute , Embperl::fdat is undefined, so I=20 > cannot access Embperl::fdat. I have found the correct package=20 > to be Embperl::__1::fdat ( or Embperl::__2::fdat depending on=20 > the process ). So it appears that Embperl::fdat is not setup=20 > if passed to Embperl::Execute. If I use the default Embperl=20 > handler Embperl::fdat is defined and can be accessed, along=20 > with Embperl::__1::fdat ( or Embperl::__2::fdat ).=20 >=20 > =20 >=20 > If I add the following lines of code to the embperl page to=20 > force Embperl::fdat to be defined, the input fields are=20 > handled correctly and the checked attribute is automatically=20 > added/removed to the checkboxes and radio buttons:=20 >=20 > =20 >=20 > my $fdat_string =3D __PACKAGE__ . '::fdat';=20 >=20 > %Embperl::fdat =3D %$fdat_string;=20 >=20 > =20 >=20 > I would prefer to not have to modify every page of my=20 > application to add this. Has anyone else noticed this=20 > behaviour? Also, can anyone else think of a workaround or=20 > another way of fixing this issue. I believe this is a bug=20 > with embperl 2.2.0.=20 >=20 > =20 >=20 > Thanks,=20 >=20 > =20 >=20 > Blayne=20 >=20 > =20 >=20 > ________________________________ >=20 > =20 >=20 > From: Blayne Bayer > Sent: Thursday, November 29, 2007 8:28 AM > To: embperl@perl.apache.org > Subject: embperl checbox checked attribute not inserted=20 >=20 > =20 >=20 > We are using Embperl 2.2.0 , we have a custom Apache Handler=20 > which in turn prebuilds fdat and calls Embperl::Execute,=20 > passing fdat, I have found that if I pass fdat ( as a hashref=20 > ) to Embperl::Execute , the CHECKED attribute is no longer=20 > automatically inserted/removed from checkboxes and radio=20 > buttons. Has anyone experienced this? And any possible ideas=20 > for a workaround? Our handler must pre-build fdat.=20 >=20 > =20 >=20 > Blayne Bayer > Senior Software Engineer > Neopost Loop One > 1717 W 6th Street STE 450 > Austin, TX 78703 USA > +1.512.697.2510 > http://www.neopostloopone.com/ > http://nls.neopost.com =20 >=20 > =20 >=20 >=20 > ** Virus checked by BB-5000 Mailfilter **=20 > !DSPAM:416,475453e249401659311169! >=20 >=20 >=20 ** Virus checked by BB-5000 Mailfilter ** --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org