Issue Details (XML | Word | Printable)

Key: GRAILS-2915
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

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

GSP expressions in taglib attributes do not behave ideally

Created: 08/May/08 07:09 AM   Updated: 18/Sep/08 10:09 AM
Component/s: View technologies
Affects Version/s: 1.0.2
Fix Version/s: 1.1-beta1

Time Tracking:
Not Specified


 Description  « Hide
I had to build a string of the form "lat,long" to pass as an attribute value, and I naturally expected this to work:

<gmaps:staticMap center="${place.lat},${place.long}"/>

Sadly however you get a Groovy compile error about unexpected "}"

This seems wrong.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Graeme Rocher added a comment - 18/Sep/08 10:09 AM
This is the expected behaviour, you should use ${one + ',' + two}