Re: [Wicket-user] Properties string with parameter

2006-10-10 Thread Gwyn Evans
Here's some code I've been using, which I'd have got from somewhere such as the phonebook or similar... String msg = MapVariableInterpolator.interpolate(getLocalizer(). getString((count == 1) ? status.topup : status.topups, this), new MicroMap(count, count)); /Gwyn On 10/10/06, Igor

[Wicket-user] Properties string with parameter

2006-10-09 Thread craigdd
I have a form object that onSubmit will catch an exception and call the error method on the form object. The key to this error has parameters in it for example here is the string in the .properties for the page that has the form. mykey=This is a string with value {0}. My question is how do I

Re: [Wicket-user] Properties string with parameter

2006-10-09 Thread Igor Vaynberg
the imodel returns a substition mapwicket doesnt use index parameters, but named ones with the same format as in elso mykey=This is a string value ${myvar}and in your map have myvar-whatever wicket has great validator support that makes it easy to validate common usecases so you might want to look