the loop is in variableinterpolator.tostring().
if you want to not escape placeholders then you can output them as
$${simple}text
-igor
2010/2/26 Michał Letyński <[email protected]>:
> Hi.
> Lets consider following situation.
> I have a property:
> info.msg=User has added ${text}
> And the object named Content with such string field text.
> String textFromProperty = getString("info.msg", new
> Model<Content>(content)));
> When the text with my Content object have value for e.g "test" i will get:
> User has added test.
> But text field can have any string (with some forbidden characters?) value
> for e.g - "this is a ${simple}text" - expression ${simple} is just a text
> for me not a placeholder.
> So first i get: "User has added this is a ${simple}text " , but later my
> value is again processed:
>
> // If a property value has been found, or a default value was given,
> // than replace the placeholder and we are done
> if (value != null)
> {
> return substitutePropertyExpressions(component, value, model);
> }
>
> What was the purpose for doing it ? If it is a feature why its not in the
> loop ? Because ${simple} may have also some placeholders ....
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]