cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pope <>
Subject Re: switch/case fails when if/then works
Date Thu, 07 Jul 2005 19:18:16 GMT
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
> 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:

and here:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message