Grails
  1. Grails
  2. GRAILS-4672

g:remoteLink strips spaces between string and variable-output in the title-attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.1.1
    • Fix Version/s: 1.2-M1
    • Component/s: TagLib
    • Labels:
      None
    • Environment:
      Using grails-1.1, coded with IntelliJ 8.1.2 on a ubuntu 9.04 system. Viewed the .gsp with Opera and Firefox

      Description

      Try the following inside a gsp:

      <g:set var="variable" value="Value" />
      {{<g:remoteLink action="theAction" params="someParams" update="success" onComplete="doSomething();" title="A title with a $

      {variable}" class="hoverLT">${variable}

      </g:remoteLink>}}

      <br />

      {{<%= remoteLink( action:'theAction', params:"someParams", update:'success', onComplete:"doSomething();", title:"A title with a $

      {variable}", class:"hoverLT") { "${variable}

      " } %>}}

      The first Link, generated by the remoteLink-tag has got a hover-text / title, which looks like this: "A title with aValue". The space between "...aValue" is stripped.
      The second Link rendered by <%= remoteLink(... has a correct hover-text / title, which looks like "A title with a Value".

      The error occures whenever a $

      {variable}

      is used inside the remoteLink title-attribute, followed by a space, or following a space.

        Activity

        Christian Kettner created issue -
        Jeff Scott Brown made changes -
        Field Original Value New Value
        Assignee Graeme Rocher [ graemerocher ] Jeff Brown [ brownj ]
        Jeff Scott Brown made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Jeff Scott Brown added a comment -

        A scenario like title="the value is $

        {value}" now retains the space between "is" and "${value}

        "

        Show
        Jeff Scott Brown added a comment - A scenario like title="the value is $ {value}" now retains the space between "is" and "${value} "
        Jeff Scott Brown made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.2 [ 14155 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Contegix Support made changes -
        Project Import Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ]
        Burt Beckwith made changes -
        Workflow jira [ 28893 ] Grails [ 42055 ]
        Burt Beckwith made changes -
        Workflow Grails [ 42055 ] Copy of Grails [ 49508 ]
        Burt Beckwith made changes -
        Workflow Copy of Grails [ 49508 ] Grails [ 56918 ]
        Burt Beckwith made changes -
        Workflow Grails [ 56918 ] Grails2 [ 64496 ]
        Burt Beckwith made changes -
        Workflow Grails2 [ 64496 ] jira [ 72020 ]
        Burt Beckwith made changes -
        Workflow jira [ 72020 ] Grails2 [ 80935 ]
        Peter Ledbrook made changes -
        Workflow Grails2 [ 80935 ] jira [ 89425 ]
        Peter Ledbrook made changes -
        Workflow jira [ 89425 ] Grails2 [ 97655 ]

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            Christian Kettner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development