Issue Details (XML | Word | Printable)

Key: WW-624
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Patrick Lightbody
Reporter: Gilles Durys
Votes: 2
Watchers: 0
Operations

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

If/Else tag do not render body

Created: 01/Sep/04 09:21 AM   Updated: 09/Sep/04 06:30 PM
Component/s: Views
Affects Version/s: 2.1.1
Fix Version/s: 2.1.2

File Attachments: 1. File test.jsp (0.5 kB)

Environment:
Suse 9.0
Orion 2.0.2


 Description  « Hide
Since WW-587, the "if" and "else" tag do not render their body.
Reverting WebWorkTagSupport to extend TagSupport fixes this.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gilles Durys added a comment - 01/Sep/04 09:24 AM
Simple testcase.
This should display the following with Webwork 2.1:
---
aTest = true

you should see me but you won't

bTest = false

you should see me but you won't
---
But only display the follwing with Webwork 2.1.1
---
aTest = true

bTest = false
---

Jon Pither added a comment - 04/Sep/04 05:50 AM
I find a similar thing happens when the if/else tags are nested within iteration tags. Here's an example.

Lets say the list 'someList' has a 3 objects

<webwork:iterator value="someList">
Before (
<webwork:if test="true">Pass</webwork:if>
<webwork:else>fail</webwork:else>
) After
</webwork:iterator>

Here's what the result would be:

) After
Before (Pass) After
Before (Pass) After
Before (Pass

Patrick Lightbody added a comment - 09/Sep/04 06:23 PM
Guys -- I'm not having this problem. I'm running on Resin.

Patrick Lightbody added a comment - 09/Sep/04 06:30 PM
I reverted back the original change, so everything should be good now.