Help overriding ComponentMessageSource service

2021-06-17 Thread Numa Schmeder
Hello, I am trying to override the ComponentMessageSource service with a custom ComponentMessageSourceImpl. The main reason to override the service is to be able to use a custom implementation of MapMessages in MessageFormatterImpl. Currently it uses only String Formatter, which is very good for

Re: Help overriding ComponentMessageSource service

2021-06-17 Thread Volker Lamp
Hello Numa, I think you are missing withId() in your binder method to assign a unique name. See https://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html Cheers, Volker Am Do., 17. Juni 2021 um 12:20 Uhr schrieb Numa Schmeder : > Hello, > > I am trying to override the ComponentMe

Re: Help overriding ComponentMessageSource service

2021-06-17 Thread Numa Schmeder
Hi, Thanks for your help, no it doesn’t seem to work. I found a solution using decorate method, but I am not sure it’s really clean. public static ComponentMessagesSource decorateComponentMessagesSource(ComponentMessagesSource current, @Autobuild CustomComponentMessagesSourceImpl custom, Upd