That is easy. Use getLocalizer.getString("key", City.class, new Model(obj)).
You can not do this in the constructor of your component though. There
are 2 workaround: 1) create a model (for example by subclassing
AbstractReadOnlyModel), 2) override the method onBeforeRender in your
component.
g myself, or...
> perhaps I'm overlooking something.
>
> Can someone shed some light please?
>
--
View this message in context:
http://www.nabble.com/Question-about-StringResourceLoader-tp15888948p16831749.html
Sent from the Wicket - User mailing list archive at Nabble.com.
odels its non obvious if this
can be achieved with inbuilt wicket objects.
I can use the IStringResourceLoader and write something myself, or...
perhaps I'm overlooking something.
Can someone shed some light please?
--
View this message in context:
http://www.nabble.com/Question-about-St