Hi Paul

have look on
https://github.com/frafac-JumpStart/jumpstart-4.12.2/commit/156beb4e67eaf696ad75e13cb54192134efa97f6

and

https://github.com/frafac-JumpStart/jumpstart-4.12.2/issues/closed#issue/12



BR
François

2011/1/10 Paul Stanton <[email protected]>

> can someone shed some light on how to override or supply new translators to
> tapestry 5.2+ ?
>
> jumpstart is written for 5.1
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/input/creatingtranslators1
>
> and no longer works.
>
> i've tried adding:
>
>    public static void
> contributeTranslatorSource(MappedConfiguration<Class<?>, Translator<?>>
> configuration)
>    {
>        configuration.add(BigDecimal.class, new BigDecimalTranslator());
>    }
>
> to AppModule, but i get:
>
> Caused by: java.lang.IllegalArgumentException: Service contribution (to
> service 'TranslatorSource') conflicts with existing contribution (by
> package.AppModule.contributeTranslatorSource(MappedConfiguration) (at
> AppModule.java)).
>    at
> org.apache.tapestry5.ioc.internal.ValidatingMappedConfigurationWrapper.add(ValidatingMappedConfigurationWrapper.java:83)
>    at
> org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(TapestryModule.java:1044)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
  • translators Paul Stanton
    • Re: translators françois facon

Reply via email to