Hi,

Try with properties.xml as extension.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Oct 17, 2014 at 11:11 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello All,
>
> I'm currently migration huge 1.4.x project to 6.17.0 and have question
> about custom string bundle
>
> CommonWebApplication.java
> CommonWebApplication.xml
> CommonWebApplication_de.xml
>
> class CommonWebApplication extends AuthenticatedWebApplication {
>     @Override
>     protected void init() {
>         super.init();
>         //getResourceSettings().getStringResourceLoaders().add(new
> BundleStringResourceLoader("CommonWebApplication.xml"));
>         //getResourceSettings().getStringResourceLoaders().add(new
> ClassStringResourceLoader(CommonWebApplication.class));
>         getResourceSettings().getStringResourceLoaders().add(new
> BundleStringResourceLoader(CommonWebApplication.class.getSimpleName()));
>     }
> }
>
> MyApplication.java
> MyApplication.xml
> MyApplication_de.xml
>
> class MyApplication extends CommonWebApplication {
>     @Override
>     protected void init() {
>         super.init();
>     }
> }
>
> Unfortunately I'm unable to load strings from "CommonWebApplication.xml"
> What am I doing wrong?
>
> --
> WBR
> Maxim aka solomax
>

Reply via email to