I am not sure how to preload the the values. I am trying this, but am not getting anywhere.
myApp.getResourceSettings().getPropertiesFactory().load(ScanManTask.clas s, "com.scanman.cron.task") I have a properties file named ScanManTask.properties and have added it to my app like this: getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(ScanManTask.class)); ScanManTask is not a commponent. The load method has a clazz and path argument. I am assummeing the class is the class associated with the property file and the path is the package it is in? I guess I could just load them manually, but I would like to take advantage of localization. How do I get a localized version of a Properties object with my messages in it? -----Original Message----- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Thursday, July 29, 2010 11:19 PM To: users@wicket.apache.org Subject: SV: Localizer in a new Thread > To clarify, I want to use Localizer#getString(...) in a thraed I > create. > I have seen other posts on this issue, but haven't been able to figure > out the solution. The Localizer.getString() looks for its messages in Wicket's property file structure, which depends on Application, the resource-oriented classes, hierarchies and so forth. Your best bet is to "pre-read" the values you need into a Properties object that you pass to the thread code. - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org