Does anyone know why the getValue() method in
PropertyVariableInterpolator explicitly escapes all ' into a double '.

This is in 1.3 RC1.


/**
         * Retrieves a value for a variable name during interpolation.
         *
         * @param variableName
         *            the variable name
         * @return the value
         */
        protected String getValue(final String variableName)
        {
                Object value = PropertyResolver.getValue(variableName, model);
                return value != null ? Strings.replaceAll(value.toString(), "'",
"''").toString() : null;
        }

I am trying to use the PropertyVariableInterpolator to interpolate
content in a panel I have (instead of using velocity), but I am
getting all my ' converted to ''.

It seems that Localizer and StringResourceModel are the only places
that use PropertyVariableInterpolator. Hopefully, they compensate for
this somehow...

Any thoughts?

Thanks,
Mark.

Reply via email to