History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-3111
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: David Smiley
Votes: 0
Watchers: 0
Operations

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

page var modifications made within a tag body only seen within that tag body

Created: 13/Jun/08 02:57 PM   Updated: 13/Jun/08 02:57 PM
Component/s: View technologies, TagLib
Affects Version/s: 1.0.3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive GrailsBugMutableVarInLoopGsp-bug-report-13062008.zip (14 kb)

Environment: Java 5, Mac OS 10.5 PPC


 Description  « Hide
I'm working with a taglib (ScaffoldTags) and I upgraded from grails 1.0.1 to 1.0.3. There's a taglib call that loops over a set of objects, giving it to a tag body each time. In my tag body in the gsp, I was incrementing a page variable counter so that I could do even/odd row type stuff. Since upgrading grails, it seemed as if the changes I was making to the variable weren't sticking once the body of the tag finished. I've replicated this with a sample app that boils the scenario down to the essentials.

See the attached bug report. Run it and go to the main page where some gsp exercises the problem. Technically it's not a "testcase".

This may be related to GRAILS-2675



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.