Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 30600 invoked from network); 7 Jul 2005 19:18:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 19:18:31 -0000 Received: (qmail 45483 invoked by uid 500); 7 Jul 2005 19:18:23 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 45436 invoked by uid 500); 7 Jul 2005 19:18:22 -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 45423 invoked by uid 99); 7 Jul 2005 19:18:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 12:18:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_ENDS_IN_NUMS,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of benpope81@gmail.com designates 64.233.184.206 as permitted sender) Received: from [64.233.184.206] (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 12:18:18 -0700 Received: by wproxy.gmail.com with SMTP id 49so373153wri for ; Thu, 07 Jul 2005 12:18:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=o4b2mqwDFmVyUC8oQ9T2OqO+sHQEYwdbUbvVLi5QusSNOJ8w6gcBSZe+APX5++xyYk2lE276YsJnvXmGYOQF7MzvdenTEBV9l8BMEnDYT62BAcq7j39ESUfBUg1XPeH+gngxvOEkOLXMxercg9AMhPksgWvevUdZvM+JZfqf7ZM= Received: by 10.54.19.78 with SMTP id 78mr562923wrs; Thu, 07 Jul 2005 12:18:16 -0700 (PDT) Received: from ?192.168.0.12? ([80.41.95.18]) by mx.gmail.com with ESMTP id 67sm4464140wra.2005.07.07.12.18.16; Thu, 07 Jul 2005 12:18:16 -0700 (PDT) Message-ID: <42CD7FF8.8020902@_REMOVE_gmail.com> Date: Thu, 07 Jul 2005 20:18:16 +0100 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) 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> In-Reply-To: <42CB9760.30806@gefi.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Ben Pope X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Ben --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org