Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-45

Allow override default translator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 5.0.15
    • 5.1
    • tapestry-ioc
    • None
    • All

    Description

      Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field.

      If you try to:
      public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
      {
      configuration.add("double", new LocalizedDoubleTranslator());
      }

      It results in:
      [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.

      Is it possible to assign alias to this translator to override it?

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            9902468 Ville Virtanen
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: