Issue Details (XML | Word | Printable)

Key: JELLY-196
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Marc DeXeT
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons Jelly

SwitchTag can not be reused if default encountered

Created: 19/Jan/05 05:49 AM   Updated: 28/Jan/05 08:44 PM
Return to search
Component/s: core / taglib.core
Affects Version/s: 1.0
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch_2005.01.18_switchTag.test.txt 2005-01-19 06:11 AM Marc DeXeT 3 kB
Text File Licensed for inclusion in ASF works patch_2005.01.18_switchTag.txt 2005-01-19 06:11 AM Marc DeXeT 0.7 kB
Environment: 1.0-RC2-SNAPSHOT

Resolution Date: 28/Jan/05 08:44 PM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.