then use component.getstring() that takes a model which is a map of
key, values that will be interpolated in the string.
if you want {0} format then use java's formatter to interpolate it
-igor
On Tue, Jul 22, 2008 at 7:08 AM, liny <[EMAIL PROTECTED]> wrote:
>
> What if I want to pass parameter to message?
> For example, "You must pay more {0} dollars". I want to set {0} with a
> parameter.
> How can I do?
>
> Thanks!
>
>
> Gerolf Seitz wrote:
>>
>> myComponent.error(getString("my.localized.key"));
>>
>> Gerolf
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Localized-error%28%29-tp15841037p18588117.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]