Re: IInitializer order

2013-06-24 Thread Marios Skounakis
I replace the standard InitializerSRL with MYInitializerSRL so there's no efficiency problem. It seems better to me to replace the standard InitializerSRL rather than add an extra SRL but that's just me. Thanks for your answers, everything is more clear now. On Mon, Jun 24, 2013 at 10:35 AM, Mar

Re: IInitializer order

2013-06-24 Thread Martin Grigorov
On Mon, Jun 24, 2013 at 10:29 AM, Marios Skounakis wrote: > Martin, > > What I meant is that now I have my own > class MyInitializerStringResourceLoader extends > InitializerStringResourceLoader > and its constructor calls > > super(sort(initializers)); > > and sort() puts my own Initializer fi

Re: IInitializer order

2013-06-24 Thread Marios Skounakis
Martin, What I meant is that now I have my own class MyInitializerStringResourceLoader extends InitializerStringResourceLoader and its constructor calls super(sort(initializers)); and sort() puts my own Initializer first in the initializers list. Is this not safe? It does seem to work (whereas

Re: IInitializer order

2013-06-24 Thread Martin Grigorov
The order of the initializers depends on the order of the jars in the classpath. Depending on the order is not recommended. I think Cedric's idea was to roll your own ISRL that knows exactly where is your resource bundle and knows how to load it. On Mon, Jun 24, 2013 at 10:16 AM, Marios Skounaki

Re: IInitializer order

2013-06-24 Thread Marios Skounakis
Not sure if this is what you mean but in Application.init I replaced the InitializerStringResourceLoader in application.getResourceSettings().getStringResourceLoaders() with my own MyInitializerStringResourceLoader which resorts the initializers list and puts my own initializer in the first positio

Re: IInitializer order

2013-06-23 Thread Cedric Gatay
Hi, You can write your own IStringResourceLoader providing your set of translations and register it in front of the list through the IInitializer mechanism. Regards, Le 24 juin 2013 07:12, "Marios Skounakis" a écrit : > Hi all, > > I am developing a "framework" library with wicket components and

IInitializer order

2013-06-23 Thread Marios Skounakis
Hi all, I am developing a "framework" library with wicket components and utility classes that is intended to be reused in all wicket apps developed by our company. I wish to override some of the standard wicket messages (e.g. wicket-extensions datatable.no-records-found=No Records Found). I have