Hi!
Which is generally the preferred / least expensive way to get a resource
string?
new ResourceModel("my.resource.key").getObject().toString();
or
getLocalizer().getString("my.resource.key", MyComponent.this);
I've been using getLocalizer almost everywhere, and only using ResourceModel
when I'm trying to get a property string during Component construction (to
avoid those getLocalizer warnings). But I'm not really sure if my reasoning
is good...
Thanks for any input.
LBB
--
View this message in context:
http://www.nabble.com/ResourceModel-vs.-getLocalizer-tp19040992p19040992.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]