You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sven Meier <sv...@meiers.net> on 2013/12/11 21:40:37 UTC

Re: How do I access Wicket's string resources in a non component class ?

Hi,

you can pass a null component to Localizer's methods. You have to put 
the string resources in YourApplication.properties or 
YourInitializer.properties though.

Hope this helps
Sven


On 12/11/2013 09:10 PM, Warren Bell wrote:
> I want to access Wicket's string resources in a non component class. I am aware of getLocalizer().getString(...) for a component, but how do you do this in a non Component based class and how do you make Wicket aware of the message bundle ? All of the Localizer#getString(...) methods require a Component. I am using Wicket version 6.10.0. I have a REST resource named UserResource.java and messages in UserResource.properties.
>
> Thanks
>
> Warren


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org