You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Marc DeXeT (JIRA)" <co...@jakarta.apache.org> on 2005/01/18 22:21:17 UTC
[jira] Updated: (JELLY-196) SwitchTag can not be reused if default encountered
[ http://issues.apache.org/jira/browse/JELLY-196?page=history ]
Marc DeXeT updated JELLY-196:
-----------------------------
Attachment: patch_2005.01.18_switchTag.txt
> SwitchTag can not be reused if default encountered
> --------------------------------------------------
>
> Key: JELLY-196
> URL: http://issues.apache.org/jira/browse/JELLY-196
> Project: jelly
> Type: Bug
> Components: core / taglib.core
> Versions: 1.0
> Environment: 1.0-RC2-SNAPSHOT
> Reporter: Marc DeXeT
> Attachments: patch_2005.01.18_switchTag.test.txt, patch_2005.01.18_switchTag.txt
>
> Script as
> <j:forEach var="var" items="a,b">
> <j:switch on="${var}">
> <j:case value="unencountered1">
> <j:set var="res" value="1"/>
> </j:case>
> <j:case value="unencountered2">
> <j:set var="res" value="2"/>
> </j:case>
> <j:default>
> <j:set var="res" value="default"/>
> </j:default>
> </j:switch>
> </j:forEach>
> throws "<default> should be the last tag within a <switch>" because of SwitchTag boolean property defaultEncountered is not reset.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org