groovy.lang.GroovyRuntimeException: Failed to parse template script
(your template may contain an error or be trying to use expressions
not currently supported): startup failed:
SimpleTemplateScript10.groovy: 16: illegal string body character after
dollar sign;
solution: either escape a literal dollar sign "\$5" or bracket the
value expression "${5}" @ line 16, column 10.
out.print(" $(\"#test\");\n");
Am I missing something or the SimpleTemplateScript need to be changed/
configure to ignore $() ?
Sey
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Gaelyk.
Pour envoyer un message à ce groupe, adressez un e-mail à gae...@googlegroups.com.
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse gaelyk+un...@googlegroups.com.
Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/gaelyk?hl=fr
Thanks!
sey
On Jan 6, 3:01 am, Guillaume Laforge <glafo...@gmail.com> wrote:
> Hi Sey,
>
> Actually, the error message is quite good and explicit, no?
> You just need to escape the $ with a backslash \.
> Because $ is used for GStrings in Groovy, and hence in templates too.
> So just do \$.ajax... etc.
>
> Guillaume
>
> PS: For instance, the Groovy Web Console is using jQuery. And I had to
> escape the $. There's also the possibility of using the 'jquery' syntax
> instead of the dollar sign.
>
> 2010/1/5 Seymores <seymo...@gmail.com>
>
>
>
> > I was surprise to get this error when I tried to use jquery script in
> > *.gtpl page. The error I got is:
>
> > groovy.lang.GroovyRuntimeException: Failed to parse template script
> > (your template may contain an error or be trying to use expressions
> > not currently supported): startup failed:
> > SimpleTemplateScript10.groovy: 16: illegal string body character after
> > dollar sign;
> > solution: either escape a literal dollar sign "\$5" or bracket the
> > value expression "${5}" @ line 16, column 10.
> > out.print(" $(\"#test\");\n");
>
> > Am I missing something or the SimpleTemplateScript need to be changed/
> > configure to ignore $() ?
>
> > Sey
>
> > --
> > Vous recevez ce message, car vous êtes abonné au groupe Google
> > Groupes Gaelyk.
> > Pour envoyer un message à ce groupe, adressez un e-mail à
> > gae...@googlegroups.com.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> > gaelyk+un...@googlegroups.com<gaelyk%2Bunsu...@googlegroups.com>
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse gaelyk+un...@googlegroups.com.