Hi,

I'm trying to provide custom properties file for Wicket application.

I was going to use BundleStringResourceLoader using

getResourceSettings().getStringResourceLoaders().add(new
BundleStringResourceLoader("MyWicketApplication")).

Then I replaced "Required" message with my message it is not used.
After debugging into org.apache.wicket.Localizer I can see it iterates
through org.apache.wicket.resource.loader.IStringResourceLoader in this
order:

ComponentStringResourceLoader
PackageStringResourceLoader
ClassStringResourceLoader
ValidatorStringResourceLoader
InitializerStringResourceLoader
BundleStringResourceLoader

So the "Required" message is loaded from InitializerStringResourceLoader
before my BundleStringResourceLoader is hit.

How to properly provide Wicket with custom bundle containing ALL types of
messages?

Thanks,
Zbynek

Reply via email to