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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to