On Fri, Oct 17, 2014 at 11:11 AM, Maxim Solodovnik <[email protected]>
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()));
>
remove those. Wicket detects a bundle named as the Application class
automatically
> }
> }
>
> 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
>