Grails

GSP expressions in HTML attributes cause exception if separated by a whitespace

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC2
  • Fix Version/s: 1.2.1
  • Component/s: None
  • Labels:
    None
  • Environment:
    XPSP2, JDK 1.6 Upd. 17

Description

The following GSP expressions are not working anymore since upgrading to RC-2 (from 1.1.1.):

<body class="${page.name} ${page.group.name.toLowerCase()}">

Exception:

Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, xyz_gsp: 126: unexpected token: $ @ line 126, column 131.

I have to do the following:

<body class="${page.name + ' ' + page.group.name.toLowerCase()}">

Issue Links

Activity

Hide
Lari Hotari added a comment -
Show
Lari Hotari added a comment - Fixed in this commit (1.2.x branch): http://github.com/grails/grails/commit/ec8310829532819e270e7e3fd5bd4a7209434bf6
Hide
Graeme Rocher added a comment -

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - Bulk closing bunch of resolved issues

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: