Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 61466 invoked from network); 8 Jul 2005 13:41:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 13:41:31 -0000 Received: (qmail 89457 invoked by uid 500); 8 Jul 2005 13:41:21 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 89439 invoked by uid 500); 8 Jul 2005 13:41:21 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 89426 invoked by uid 99); 8 Jul 2005 13:41:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 06:41:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.40.176.118] (HELO hp.gefi.at) (62.40.176.118) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 06:41:18 -0700 Received: from [192.168.1.14] (werner@leia.gefi.home [192.168.1.14]) by hp.gefi.at (8.9.3+3.2W/8.9.3/Debian 8.9.3-21) with ESMTP id PAA23766 for ; Fri, 8 Jul 2005 15:41:14 +0200 X-Authentication-Warning: hp.gefi.at: Host werner@leia.gefi.home [192.168.1.14] claimed to be [192.168.1.14] Message-ID: <42CE823F.7010709@gefi.at> Date: Fri, 08 Jul 2005 15:40:15 +0200 From: Werner Masik Reply-To: werner@gefi.at Organization: GEFi User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: switch/case fails when if/then works References: <42CB9760.30806@gefi.at> <42CD7FF8.8020902@_REMOVE_gmail.com> In-Reply-To: <42CD7FF8.8020902@_REMOVE_gmail.com> Content-Type: multipart/mixed; boundary="------------080408010609010504070503" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080408010609010504070503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ben Pope wrote: > Werner Masik wrote: > >> Hello! >> >> I have a strange flowscript problem with a switch/case. The code is >> a function that should display a list of persons (using a repeater). >> Every row of the repeater contains a submit button for editing and >> deleting. When a button is pressed the form gets submitted and the >> next action is decided by a If/then or a Switch/case that compares >> the ID of the submit-widget. The strange behaviour is that when I >> press the edit button (with submit-ID=editPerson) the switch/case >> compare does not seem to work. The If/then works. Is it possible that >> switch/case only works with integer? Or maybe it is just a stupid >> mistake I don't see now. But the code is based on >> http://www.planetcocoon.com/node/1715#comment >> So I think it should work. If anybody has an idea, please let me know. > > > I recall reading something about switching on strings... have a look > here: > > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=111056231409589&w=2 > > and here: > http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110865972811342&w=2 > This link says it all. Looks like the switch statement only works in 2.2 as expected. I had a lot of headache because of this problem. Thank's for finding out the links. Werner > Ben > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > --------------080408010609010504070503 Content-Type: text/x-vcard; charset=utf-8; name="werner.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="werner.vcf" begin:vcard fn:Werner Masik n:Masik;Werner org:GEFi Informationstechnik und Datenservice adr:;;Reisenbauerring 5/1/12;Wiener Neudorf;;2351;Austria email;internet:werner@gefi.at tel;work:+43 2236 304 224 tel;cell:+43 676 5289757 x-mozilla-html:FALSE url:http://www.gefi.at version:2.1 end:vcard --------------080408010609010504070503 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------080408010609010504070503--