[ 
https://issues.apache.org/jira/browse/WICKET-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831126#action_12831126
 ] 

Igor Vaynberg commented on WICKET-2727:
---------------------------------------

we are not using velocity syntax. the ${varname} convention existed before 
velocity was around. we also do not support all the features that 
velocity/freemarker/etc/etc provide, we only support the variable substitution.

we cannot change our escape sequence anymore then velocity can change theirs, 
people have a lot of existing code written against the current one.

of course you can always write your own interpolator that uses velocity...

> Interpolator replace $$ by $ - breaks javascript templates using prototype 
> css selector
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-2727
>                 URL: https://issues.apache.org/jira/browse/WICKET-2727
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Bruno Bieth
>            Assignee: Igor Vaynberg
>
> If I'm using the prototype css selector in a javascript template file, the 
> interpolator convert double $ into a single $. This gives weird runtime 
> errors as single $ is also a prototype selector (with a different semantic).
> I don't see why $$ should be replaced by the variable interpolator ?
> In VariableInterpolator (line 111) :
> {code}
>       while ((start = lowerPositive(string.indexOf("$$", pos), 
> string.indexOf("${", pos))) != -1)
>               {
>                       // Append text before possible variable
>                       buffer.append(string.substring(pos, start));
>                       if (string.charAt(start + 1) == '$')
>                       {
>                               buffer.append("$");
>                               pos = start + 2;
>                               continue;
>                       }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to