At one point I wanted to do interpolation in constant strings, so I just used the property interpolator directly:

PropertyVariableInterpolator.interpolate(value, modelObject);

You can use that to build a model that recursively interpolates until there are no more ${...} occurrences in the value.

Regards,
Sebastiaan

i ii wrote:
thank you for help! which way is better? my own component or srm model that 
gets from localizer?

Date: Wed, 12 Mar 2008 13:57:10 -0700
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: StringResourceModel labels within values

but will that work recusively? :)

-igor


On Wed, Mar 12, 2008 at 1:44 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
I think if you just give SRM a model that again gets the values from
 the localizer then it should work fine.




 On 3/12/08, i ii <[EMAIL PROTECTED]> wrote:
 >
 > is there way to do something like:
 >
 > .properties file:
 >
 > some.label=Some Label
 > some.text=Some Text
 > some.key=This text will have ${some.label} and ${some.text}
 >

 ---------------------------------------------------------------------
 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]


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to